Modules#
EmberAfPluginMessagingServerMessage
Messaging Server#
API and Callbacks for the friendly-name Component.
Silicon Labs implementation of the Messaging server cluster. This component serves up messages in its table to clients that request them. This component requires extending to populate the message table with messages.
API#
Get the message used by the messaging server plugin.
Set the message used by the Messaging server plugin.
Get the message used by the messaging server plugin.
Get the message used by the messaging server plugin.
Macros#
API Documentation#
emberAfPluginMessagingServerGetMessage#
bool emberAfPluginMessagingServerGetMessage (uint8_t endpoint, EmberAfPluginMessagingServerMessage * message)
Get the message used by the messaging server plugin.
N/A | endpoint | The relevant endpoint. |
N/A | message | The EmberAfPluginMessagingServerMessage structure describing the message. |
This function gets the message and metadata that the plugin sends to clients. For "start now" messages that are current or scheduled, the duration is adjusted to reflect how many minutes remain for the message. Otherwise, the start time and duration of "start now" messages reflect the actual start and the original duration.
Returns
True if the message is valid or false is the message does not exist or is expired.
95
of file app/framework/plugin/messaging-server/messaging-server.h
emberAfPluginMessagingServerSetMessage#
void emberAfPluginMessagingServerSetMessage (uint8_t endpoint, const EmberAfPluginMessagingServerMessage * message)
Set the message used by the Messaging server plugin.
N/A | endpoint | The relevant endpoint. |
N/A | message | The EmberAfPluginMessagingServerMessage structure describing the message. If NULL, the message is removed from the server. |
This function sets the message and metadata that the plugin will send to clients. Setting the start time to zero instructs clients to start the message now. For "start now" messages, the plugin will automatically adjust the duration reported to clients based on the original start time of the message.
111
of file app/framework/plugin/messaging-server/messaging-server.h
emberAfPluginMessagingServerDisplayMessage#
void emberAfPluginMessagingServerDisplayMessage (EmberNodeId nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint)
Get the message used by the messaging server plugin.
N/A | nodeId | The relevant endpoint. |
N/A | srcEndpoint | The EmberAfPluginMessagingServerMessage structure describing the message. |
N/A | dstEndpoint |
This function gets the message and metadata that the plugin sends to clients. For "start now" messages that are current or scheduled, the duration is adjusted to reflect how many minutes remain for the message. Otherwise, the start time and duration of "start now" messages reflect the actual start and the original duration.
Returns
True if the message is valid or false is the message does not exist or is expired.
114
of file app/framework/plugin/messaging-server/messaging-server.h
emberAfPluginMessagingServerCancelMessage#
void emberAfPluginMessagingServerCancelMessage (EmberNodeId nodeId, uint8_t srcEndpoint, uint8_t dstEndpoint)
Get the message used by the messaging server plugin.
N/A | nodeId | The relevant endpoint. |
N/A | srcEndpoint | The EmberAfPluginMessagingServerMessage structure describing the message. |
N/A | dstEndpoint |
This function gets the message and metadata that the plugin sends to clients. For "start now" messages that are current or scheduled, the duration is adjusted to reflect how many minutes remain for the message. Otherwise, the start time and duration of "start now" messages reflect the actual start and the original duration.
Returns
True if the message is valid or false is the message does not exist or is expired.
118
of file app/framework/plugin/messaging-server/messaging-server.h
Macro Definition Documentation#
ZCL_MESSAGING_CLUSTER_TRANSMISSION_MASK#
#define ZCL_MESSAGING_CLUSTER_TRANSMISSION_MASKValue:
(BIT(1) | BIT(0))
40
of file app/framework/plugin/messaging-server/messaging-server.h
ZCL_MESSAGING_CLUSTER_IMPORTANCE_MASK#
#define ZCL_MESSAGING_CLUSTER_IMPORTANCE_MASKValue:
(BIT(3) | BIT(2))
41
of file app/framework/plugin/messaging-server/messaging-server.h
ZCL_MESSAGING_CLUSTER_RESERVED_MASK#
#define ZCL_MESSAGING_CLUSTER_RESERVED_MASKValue:
(BIT(6) | BIT(5) | BIT(4))
42
of file app/framework/plugin/messaging-server/messaging-server.h
ZCL_MESSAGING_CLUSTER_CONFIRMATION_MASK#
#define ZCL_MESSAGING_CLUSTER_CONFIRMATION_MASKValue:
BIT(7)
43
of file app/framework/plugin/messaging-server/messaging-server.h
ZCL_MESSAGING_CLUSTER_START_TIME_NOW#
#define ZCL_MESSAGING_CLUSTER_START_TIME_NOWValue:
0x00000000UL
45
of file app/framework/plugin/messaging-server/messaging-server.h
ZCL_MESSAGING_CLUSTER_END_TIME_NEVER#
#define ZCL_MESSAGING_CLUSTER_END_TIME_NEVERValue:
0xFFFFFFFFUL
46
of file app/framework/plugin/messaging-server/messaging-server.h
ZCL_MESSAGING_CLUSTER_DURATION_UNTIL_CHANGED#
#define ZCL_MESSAGING_CLUSTER_DURATION_UNTIL_CHANGEDValue:
0xFFFF
47
of file app/framework/plugin/messaging-server/messaging-server.h