Macros | |
| #define | ZB_ZCL_CLUSTER_ID_MESSAGING_SERVER_ROLE_GENERATED_CMD_LIST |
| #define | ZB_ZCL_CLUSTER_ID_MESSAGING_CLIENT_ROLE_RECEIVED_CMD_LIST ZB_ZCL_CLUSTER_ID_MESSAGING_SERVER_ROLE_GENERATED_CMD_LIST |
| #define | ZB_ZCL_CLUSTER_ID_MESSAGING_CLIENT_ROLE_GENERATED_CMD_LIST |
| #define | ZB_ZCL_CLUSTER_ID_MESSAGING_SERVER_ROLE_RECEIVED_CMD_LIST ZB_ZCL_CLUSTER_ID_MESSAGING_CLIENT_ROLE_GENERATED_CMD_LIST |
| #define | ZB_ZCL_MESSAGING_CLUSTER_REVISION_DEFAULT ((zb_uint16_t)0x0002u) |
| Default value for Messaging cluster revision global attribute. | |
| #define | ZB_ZCL_DECLARE_MESSAGING_ATTR_LIST(attr_list) |
| Declare attribute list for Messaging cluster (only cluster revision attribute) More... | |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_TRANSMISSION_MECHANISM(x, val) ((x) &= (0xFC | ((val) & 0x03))) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_TRANSMISSION_MECHANISM(x) ((x) & 0x03) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_TRANSMISSION_MECHANISM(x) ((x) &= 0xFC) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_IMPORTANCE_LEVEL(x, val) ((x) &= (0xF3 | ((val) & 0x03) << 2) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_IMPORTANCE_LEVEL(x) (((x) >> 2) & 0x03) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_IMPORTANCE_LEVEL(x) ((x) &= 0xF3) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_ENHANCED_CONFIRMATION(x, val) ((x) &= (0xDF | ((val) & 0x01) << 5) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_ENHANCED_CONFIRMATION(x) (((x) >> 5) & 0x01) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_ENHANCED_CONFIRMATION(x) ((x) &= 0xDF ) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_MESSAGE_CONFIRMATION(x, val) ((x) &= (0x7F | ((val) & 0x01) << 7) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_MESSAGE_CONFIRMATION(x) (((x) >> 7) & 0x01) |
| #define | ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_MESSAGE_CONFIRMATION(x) ((x) &= 0x7F) |
| #define | ZB_ZCL_MESSAGING_DISPLAY_MSG_PAYLOAD_SIZE_IS_VALID(size) |
| #define | ZB_ZCL_MESSAGING_DISPLAY_MSG_PAYLOAD_INIT |
| #define | ZB_ZCL_MESSAGING_CANCEL_MSG_PAYLOAD_INIT (zb_zcl_messaging_cancel_message_payload_t) {0} |
| #define | ZB_ZCL_MESSAGING_MSG_CANCEL_MESSAGE_SIZE_IS_VALID(size) ((size) >= sizeof(zb_zcl_messaging_cancel_message_payload_t)) |
| #define | ZB_ZCL_MESSAGING_MSG_CONFIRM_PAYLOAD_SIZE_IS_VALID(size) |
| #define | ZB_ZCL_MESSAGING_GET_LAST_MESSAGE_RESPONSE_INIT |
| #define | ZB_ZCL_MESSAGING_MSG_CONFIRM_PAYLOAD_INIT |
| #define | ZB_ZCL_MESSAGING_SEND_GET_LAST_MSG(_param, _dst_addr, _addr_mode, _dst_ep, _src_ep) |
| #define | ZB_ZCL_MESSAGING_SEND_DISPLAY_MSG(_param, _dst_addr, _addr_mode, _dst_ep, _src_ep, _payload) |
| #define | ZB_ZCL_MESSAGING_SEND_MSG_CONFIRMATION(_param, _dst_addr, _addr_mode, _dst_ep, _src_ep, _payload) |
| #define | ZB_ZCL_MESSAGING_SEND_CANCEL_MSG(_param, _dst_addr, _addr_mode, _dst_ep, _src_ep, _payload) |
Functions | |
| void | zb_zcl_messaging_send_get_last_msg (zb_uint8_t param, const zb_addr_u *dst_addr, zb_aps_addr_mode_t dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, zb_callback_t cb) |
| void | zb_zcl_messaging_send_display_msg (zb_uint8_t param, const zb_addr_u *dst_addr, zb_aps_addr_mode_t dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_messaging_display_message_payload_t *payload, zb_callback_t cb) |
| void | zb_zcl_messaging_send_msg_confirmation (zb_uint8_t param, const zb_addr_u *dst_addr, zb_aps_addr_mode_t dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_messaging_message_confirm_payload_t *payload, zb_callback_t cb) |
| void | zb_zcl_messaging_send_cancel_msg (zb_uint8_t param, const zb_addr_u *dst_addr, zb_aps_addr_mode_t dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_messaging_cancel_message_payload_t *payload, zb_callback_t cb) |
Detailed Description
Macro Definition Documentation
◆ ZB_ZCL_CLUSTER_ID_MESSAGING_CLIENT_ROLE_GENERATED_CMD_LIST
| #define ZB_ZCL_CLUSTER_ID_MESSAGING_CLIENT_ROLE_GENERATED_CMD_LIST |
ZB_ZCL_MESSAGING_CLI_CMD_MESSAGE_CONFIRMATIONDefinition: zb_zcl_messaging.h:117
◆ ZB_ZCL_CLUSTER_ID_MESSAGING_SERVER_ROLE_GENERATED_CMD_LIST
| #define ZB_ZCL_CLUSTER_ID_MESSAGING_SERVER_ROLE_GENERATED_CMD_LIST |
ZB_ZCL_MESSAGING_SRV_CMD_DISPLAY_MESSAGEDefinition: zb_zcl_messaging.h:86
◆ ZB_ZCL_DECLARE_MESSAGING_ATTR_LIST
| #define ZB_ZCL_DECLARE_MESSAGING_ATTR_LIST | ( | attr_list | ) |
ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_MESSAGING) \ ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST
Declare attribute list for Messaging cluster (only cluster revision attribute)
- Parameters
-
attr_list - attribute list name
◆ ZB_ZCL_MESSAGING_CANCEL_MSG_PAYLOAD_INIT
| #define ZB_ZCL_MESSAGING_CANCEL_MSG_PAYLOAD_INIT (zb_zcl_messaging_cancel_message_payload_t) {0} |
zb_zcl_messaging_cancel_message_payload_t initializer
◆ ZB_ZCL_MESSAGING_DISPLAY_MSG_PAYLOAD_INIT
| #define ZB_ZCL_MESSAGING_DISPLAY_MSG_PAYLOAD_INIT |
{ \ .extended_message_control = 0x00, \ }struct zb_zcl_messaging_display_message_payload_s zb_zcl_messaging_display_message_payload_t
zb_zcl_messaging_display_message_payload_t initializer
◆ ZB_ZCL_MESSAGING_DISPLAY_MSG_PAYLOAD_SIZE_IS_VALID
| #define ZB_ZCL_MESSAGING_DISPLAY_MSG_PAYLOAD_SIZE_IS_VALID | ( | size | ) |
(zb_int16_t)ZB_SIZEOF_FIELD(zb_zcl_messaging_display_message_payload_t, message) -\(zb_int16_t)ZB_SIZEOF_FIELD(zb_zcl_messaging_display_message_payload_t, extended_message_control)))Definition: zb_zcl_messaging.h:180
struct zb_zcl_messaging_display_message_payload_s zb_zcl_messaging_display_message_payload_t
Check if some size in range of variable size of specified payload.
◆ ZB_ZCL_MESSAGING_GET_LAST_MESSAGE_RESPONSE_INIT
| #define ZB_ZCL_MESSAGING_GET_LAST_MESSAGE_RESPONSE_INIT |
{ \ .resp_type = ZB_ZCL_MESSAGING_RESPONSE_TYPE_NOT_FOUND, \ .resp.display_message = ZB_ZCL_MESSAGING_DISPLAY_MSG_PAYLOAD_INIT, \ }struct zb_zcl_messaging_get_last_message_response_s zb_zcl_messaging_get_last_message_response_t
#define ZB_ZCL_MESSAGING_DISPLAY_MSG_PAYLOAD_INITDefinition: zb_zcl_messaging.h:385
zb_zcl_messaging_get_last_message_response_t initializer
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_ENHANCED_CONFIRMATION
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_ENHANCED_CONFIRMATION | ( | x | ) | ((x) &= 0xDF ) |
Clear MessageControl's enhanced confirmation value
- Parameters
-
x - variable that stores enhanced confirmation value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_IMPORTANCE_LEVEL
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_IMPORTANCE_LEVEL | ( | x | ) | ((x) &= 0xF3) |
Clear MessageControl's control importance value
- Parameters
-
x - variable that stores control importance value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_MESSAGE_CONFIRMATION
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_MESSAGE_CONFIRMATION | ( | x | ) | ((x) &= 0x7F) |
Clear MessageControl's message confirmation value
- Parameters
-
x - variable that stores message confirmation value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_TRANSMISSION_MECHANISM
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_TRANSMISSION_MECHANISM | ( | x | ) | ((x) &= 0xFC) |
Clear MessageControl's transmission mechanism value
- Parameters
-
x - variable that stores transmission mechanism value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_ENHANCED_CONFIRMATION
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_ENHANCED_CONFIRMATION | ( | x | ) | (((x) >> 5) & 0x01) |
Get MessageControl's enhanced confirmation value
- Parameters
-
x - variable that stores enhanced confirmation value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_IMPORTANCE_LEVEL
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_IMPORTANCE_LEVEL | ( | x | ) | (((x) >> 2) & 0x03) |
Get MessageControl's control importance value
- Parameters
-
x - variable that stores control importance value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_MESSAGE_CONFIRMATION
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_MESSAGE_CONFIRMATION | ( | x | ) | (((x) >> 7) & 0x01) |
Get MessageControl's message confirmation value
- Parameters
-
x - variable that stores message confirmation value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_TRANSMISSION_MECHANISM
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_TRANSMISSION_MECHANISM | ( | x | ) | ((x) & 0x03) |
Get MessageControl's transmission mechanism value
- Parameters
-
x - variable that stores transmission mechanism value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_ENHANCED_CONFIRMATION
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_ENHANCED_CONFIRMATION | ( | x, | |
| val | |||
| ) | ((x) &= (0xDF | ((val) & 0x01) << 5) |
Set MessageControl's enhanced confirmation value
- Parameters
-
x - variable to store enhanced confirmation value val - zb_zcl_messaging_message_control_enhanced_confirmation_t value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_IMPORTANCE_LEVEL
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_IMPORTANCE_LEVEL | ( | x, | |
| val | |||
| ) | ((x) &= (0xF3 | ((val) & 0x03) << 2) |
Set MessageControl's control importance value
- Parameters
-
x - variable to store control importance value val - zb_zcl_messaging_message_control_importance_level_t value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_MESSAGE_CONFIRMATION
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_MESSAGE_CONFIRMATION | ( | x, | |
| val | |||
| ) | ((x) &= (0x7F | ((val) & 0x01) << 7) |
Set MessageControl's message confirmation value
- Parameters
-
x - variable to store message confirmation value val - zb_zcl_messaging_message_control_message_confirmation_t value
◆ ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_TRANSMISSION_MECHANISM
| #define ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_TRANSMISSION_MECHANISM | ( | x, | |
| val | |||
| ) | ((x) &= (0xFC | ((val) & 0x03))) |
Set MessageControl's transmission mechanism value
- Parameters
-
x - variable to store transmission mechanism value val - zb_zcl_messaging_control_field_transmission_mechanism_t value
◆ ZB_ZCL_MESSAGING_MSG_CANCEL_MESSAGE_SIZE_IS_VALID
| #define ZB_ZCL_MESSAGING_MSG_CANCEL_MESSAGE_SIZE_IS_VALID | ( | size | ) | ((size) >= sizeof(zb_zcl_messaging_cancel_message_payload_t)) |
Check if some size in range of variable size of specified payload.
◆ ZB_ZCL_MESSAGING_MSG_CONFIRM_PAYLOAD_INIT
| #define ZB_ZCL_MESSAGING_MSG_CONFIRM_PAYLOAD_INIT |
{\ .message_confirmation_response = {0x00} \ }struct zb_zcl_messaging_message_confirm_payload_s zb_zcl_messaging_message_confirm_payload_t
zb_zcl_messaging_message_confirm_payload_t initializer
◆ ZB_ZCL_MESSAGING_MSG_CONFIRM_PAYLOAD_SIZE_IS_VALID
| #define ZB_ZCL_MESSAGING_MSG_CONFIRM_PAYLOAD_SIZE_IS_VALID | ( | size | ) |
((size) >= sizeof(zb_zcl_messaging_message_confirm_payload_t) - \ ZB_SIZEOF_FIELD(zb_zcl_messaging_message_confirm_payload_t, message_confirmation_control) -\ ZB_SIZEOF_FIELD(zb_zcl_messaging_message_confirm_payload_t, message_confirmation_response))Definition: zb_zcl_messaging.h:425
Check if some size in range of variable size of specified payload.
◆ ZB_ZCL_MESSAGING_SEND_CANCEL_MSG
| #define ZB_ZCL_MESSAGING_SEND_CANCEL_MSG | ( | _param, | |
| _dst_addr, | |||
| _addr_mode, | |||
| _dst_ep, | |||
| _src_ep, | |||
| _payload | |||
| ) |
zb_zcl_messaging_send_cancel_msg(_param, _dst_addr, _addr_mode, \ _dst_ep, _src_ep, _payload, NULL)void zb_zcl_messaging_send_cancel_msg(zb_uint8_t param, const zb_addr_u *dst_addr, zb_aps_addr_mode_t dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_messaging_cancel_message_payload_t *payload, zb_callback_t cb)
Macro for call zb_zcl_messaging_send_cancel_msg function
◆ ZB_ZCL_MESSAGING_SEND_DISPLAY_MSG
| #define ZB_ZCL_MESSAGING_SEND_DISPLAY_MSG | ( | _param, | |
| _dst_addr, | |||
| _addr_mode, | |||
| _dst_ep, | |||
| _src_ep, | |||
| _payload | |||
| ) |
zb_zcl_messaging_send_display_msg(_param, _dst_addr, _addr_mode, \ _dst_ep, _src_ep, _payload, NULL)void zb_zcl_messaging_send_display_msg(zb_uint8_t param, const zb_addr_u *dst_addr, zb_aps_addr_mode_t dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_messaging_display_message_payload_t *payload, zb_callback_t cb)
Macro for call zb_zcl_messaging_send_display_msg function
◆ ZB_ZCL_MESSAGING_SEND_GET_LAST_MSG
| #define ZB_ZCL_MESSAGING_SEND_GET_LAST_MSG | ( | _param, | |
| _dst_addr, | |||
| _addr_mode, | |||
| _dst_ep, | |||
| _src_ep | |||
| ) |
zb_zcl_messaging_send_get_last_msg(_param, _dst_addr, _addr_mode, \ _dst_ep, _src_ep, NULL) \void zb_zcl_messaging_send_get_last_msg(zb_uint8_t param, const zb_addr_u *dst_addr, zb_aps_addr_mode_t dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, zb_callback_t cb)
Macro for call zb_zcl_messaging_send_get_last_msg function
◆ ZB_ZCL_MESSAGING_SEND_MSG_CONFIRMATION
| #define ZB_ZCL_MESSAGING_SEND_MSG_CONFIRMATION | ( | _param, | |
| _dst_addr, | |||
| _addr_mode, | |||
| _dst_ep, | |||
| _src_ep, | |||
| _payload | |||
| ) |
zb_zcl_messaging_send_msg_confirmation(_param, _dst_addr, _addr_mode, \ _dst_ep, _src_ep, _payload, NULL)void zb_zcl_messaging_send_msg_confirmation(zb_uint8_t param, const zb_addr_u *dst_addr, zb_aps_addr_mode_t dst_addr_mode, zb_uint8_t dst_ep, zb_uint8_t src_ep, const zb_zcl_messaging_message_confirm_payload_t *payload, zb_callback_t cb)
Macro for call zb_zcl_messaging_send_msg_confirmation function
Typedef Documentation
◆ zb_zcl_messaging_cancel_all_message_payload_t
CancelAllMessages command payload
- See also
- SE spec, subclause D.5.2.3.4.2
◆ zb_zcl_messaging_cancel_message_payload_t
CancelMessage command payload
- See also
- SE spec, subclause D.5.2.3.2.1
◆ zb_zcl_messaging_cli_cmd_t
| typedef enum zb_zcl_messaging_cli_cmd_e zb_zcl_messaging_cli_cmd_t |
Commands generated by Messaging Client
- See also
- SE spec, D.5.3.3
◆ zb_zcl_messaging_control_field_transmission_mechanism_t
MessageControl field's transmission mechanism values
◆ zb_zcl_messaging_display_message_payload_t
DisplayMessage command payload
- See also
- SE spec, subclause D.5.2.3.1.1
◆ zb_zcl_messaging_extended_message_control_field_t
Extended Message Control Field values
- See also
- SE spec, Table D-118
- zb_zcl_messaging_display_message_payload_t::extended_message_control
◆ zb_zcl_messaging_get_last_message_response_t
According to SE spec, server could send following responses to GetLastMessage command:
- NOT_FOUND as default response
- DisplayMessage command
- DisplayProtectedMessage command
◆ zb_zcl_messaging_get_message_cancellation_payload_t
GetMessageCancellation command payload
- See also
- SE spec, subclause D.5.3.3.3.2
◆ zb_zcl_messaging_message_confirm_payload_t
MessageConfirmation command payload
- See also
- SE spec, subclause D.5.3.3.2.1
◆ zb_zcl_messaging_message_confirmation_control_t
Message Confirmation Control
- See also
- SE spec, Table D-120
- zb_zcl_messaging_message_confirm_payload_t::message_confirmation_control
◆ zb_zcl_messaging_message_control_enhanced_confirmation_t
MessageControl field's enhanced confirmation values
◆ zb_zcl_messaging_message_control_importance_level_t
MessageControl field's control importance values
◆ zb_zcl_messaging_message_control_message_confirmation_t
MessageControl field's message confirmation values
◆ zb_zcl_messaging_srv_cmd_t
| typedef enum zb_zcl_messaging_srv_cmd_e zb_zcl_messaging_srv_cmd_t |
Commands generated by Messaging Server
- See also
- SE spec, subclause D.5.2.3
Enumeration Type Documentation
◆ zb_zcl_messaging_cli_cmd_e
Commands generated by Messaging Client
- See also
- SE spec, D.5.3.3
| Enumerator | |
|---|---|
| ZB_ZCL_MESSAGING_CLI_CMD_GET_LAST_MESSAGE | On receipt of this command, the device shall send a DisplayMessage or DisplayProtectedMessage command as appropriate. A ZCL Default Response with status NOT_FOUND shall be returned if no message is available.
|
| ZB_ZCL_MESSAGING_CLI_CMD_MESSAGE_CONFIRMATION | TheMessageConfirmation command provides an indication that a Utility Customer has acknowledged and/or accepted the contents of a message previously received from the Messaging cluster server. Enhanced Message Confirmation commands shall contain an answer of ‘NO’, ‘YES’ and/or a message confirmation string. If the optional Message Confirmation Response is required, the Message Confirmation Control field shall also be present.
|
| ZB_ZCL_MESSAGING_CLI_CMD_GET_MESSAGE_CANCELLATION | This command initiates the return of the first (and maybe only) CancelAllMessages command held on the associated server, and which has an implementation time equal to or later than the value indicated in the payload.
|
◆ zb_zcl_messaging_extended_message_control_e
Extended Message Control Field values
- See also
- SE spec, Table D-118
- zb_zcl_messaging_display_message_payload_t::extended_message_control
◆ zb_zcl_messaging_extended_message_control_field_bitmap_e
◆ zb_zcl_messaging_message_confirmation_control_e
Message Confirmation Control
- See also
- SE spec, Table D-120
- zb_zcl_messaging_message_confirm_payload_t::message_confirmation_control
◆ zb_zcl_messaging_message_control_enhanced_confirmation_e
MessageControl field's enhanced confirmation values
◆ zb_zcl_messaging_message_control_importance_level_e
MessageControl field's control importance values
◆ zb_zcl_messaging_message_control_message_confirmation_e
MessageControl field's message confirmation values
◆ zb_zcl_messaging_message_control_transmission_mechanism_e
MessageControl field's transmission mechanism values
- See also
- SE spec, Table D-117
- ZB_ZCL_MESSAGING_MESSAGE_CONTROL_SET_TRANSMISSION_MECHANISM
- ZB_ZCL_MESSAGING_MESSAGE_CONTROL_GET_TRANSMISSION_MECHANISM
- ZB_ZCL_MESSAGING_MESSAGE_CONTROL_CLR_TRANSMISSION_MECHANISM
◆ zb_zcl_messaging_srv_cmd_e
Commands generated by Messaging Server
- See also
- SE spec, subclause D.5.2.3
| Enumerator | |
|---|---|
| ZB_ZCL_MESSAGING_SRV_CMD_DISPLAY_MESSAGE |
|
| ZB_ZCL_MESSAGING_SRV_CMD_CANCEL_MESSAGE | TheCancelMessage command provides the ability to cancel the sending or acceptance of previously sent messages. When this message is received the recipient device has the option of clearing any display or user interfaces it supports, or has the option of logging the message for future reference.
|
| ZB_ZCL_MESSAGING_SRV_CMD_DISPLAY_PROTECTED_MESSAGE | The Display Protected Message command is for use with messages that are protected by a password or PIN. |
| ZB_ZCL_MESSAGING_SRV_CMD_CANCEL_ALL_MESSAGES | TheCancelAllMessages command indicates to a client device that it should cancel all display messages currently held by it.
|
Function Documentation
◆ zb_zcl_messaging_send_cancel_msg()
| void zb_zcl_messaging_send_cancel_msg | ( | zb_uint8_t | param, |
| const zb_addr_u * | dst_addr, | ||
| zb_aps_addr_mode_t | dst_addr_mode, | ||
| zb_uint8_t | dst_ep, | ||
| zb_uint8_t | src_ep, | ||
| const zb_zcl_messaging_cancel_message_payload_t * | payload, | ||
| zb_callback_t | cb | ||
| ) |
Function for send CancelMessage command On receiver's side callback ZCL device callback ZB_ZCL_REGISTER_DEVICE_CB will be called with ZB_ZCL_MESSAGING_CANCEL_MSG_CB_ID callback id.
- Parameters
-
param - Reference to buffer. dst_addr - Address of the device to send command to. dst_addr_mode - Address mode for dst_addr. dst_ep - Destination endpoint. src_ep - Current endpoint. payload - Packet payload (zb_zcl_messaging_cancel_message_payload_t). cb - Callback which should be called when the ZCL stack receives APS ack.
◆ zb_zcl_messaging_send_display_msg()
| void zb_zcl_messaging_send_display_msg | ( | zb_uint8_t | param, |
| const zb_addr_u * | dst_addr, | ||
| zb_aps_addr_mode_t | dst_addr_mode, | ||
| zb_uint8_t | dst_ep, | ||
| zb_uint8_t | src_ep, | ||
| const zb_zcl_messaging_display_message_payload_t * | payload, | ||
| zb_callback_t | cb | ||
| ) |
Function for send DisplayMessage command. On sender's side callback ZCL device callback ZB_ZCL_REGISTER_DEVICE_CB will be called with ZB_ZCL_MESSAGING_GET_LAST_MSG_CB_ID callback id on reception of GetLastMessage command.
On receiver's side callback ZCL device callback ZB_ZCL_REGISTER_DEVICE_CB will be called with ZB_ZCL_MESSAGING_DISPLAY_MSG_CB_ID callback id.
- Parameters
-
param - Reference to buffer. dst_addr - Address of the device to send command to. dst_addr_mode - Address mode for dst_addr. dst_ep - Destination endpoint. src_ep - Current endpoint. payload - Packet payload (zb_zcl_messaging_display_message_payload_t). cb - Callback which should be called when the ZCL stack receives APS ack.
- Usage
Handle GetLastMessage command
◆ zb_zcl_messaging_send_get_last_msg()
| void zb_zcl_messaging_send_get_last_msg | ( | zb_uint8_t | param, |
| const zb_addr_u * | dst_addr, | ||
| zb_aps_addr_mode_t | dst_addr_mode, | ||
| zb_uint8_t | dst_ep, | ||
| zb_uint8_t | src_ep, | ||
| zb_callback_t | cb | ||
| ) |
Function for send GetLastMessage command
On receiver's side callback ZCL device callback ZB_ZCL_REGISTER_DEVICE_CB will be called with ZB_ZCL_MESSAGING_GET_LAST_MSG_CB_ID callback id.
- Parameters
-
param - Reference to buffer. dst_addr - Address of the device to send command to. dst_addr_mode - Address mode for dst_addr. dst_ep - Destination endpoint. src_ep - Current endpoint. cb - Callback which should be called when the ZCL stack receives APS ack.
- Usage
Example of sending ZB_ZCL_MESSAGING_CLI_CMD_GET_LAST_MESSAGE "GetLastMessage" command
◆ zb_zcl_messaging_send_msg_confirmation()
| void zb_zcl_messaging_send_msg_confirmation | ( | zb_uint8_t | param, |
| const zb_addr_u * | dst_addr, | ||
| zb_aps_addr_mode_t | dst_addr_mode, | ||
| zb_uint8_t | dst_ep, | ||
| zb_uint8_t | src_ep, | ||
| const zb_zcl_messaging_message_confirm_payload_t * | payload, | ||
| zb_callback_t | cb | ||
| ) |
Function for send MessageConfirmation command On receiver's side callback ZCL device callback ZB_ZCL_REGISTER_DEVICE_CB will be called with ZB_ZCL_MESSAGING_MSG_CONFIRMATION_CB_ID callback id.
- Parameters
-
param - Reference to buffer. dst_addr - Address of the device to send command to. dst_addr_mode - Address mode for dst_addr. dst_ep - Destination endpoint. src_ep - Current endpoint. payload - Packet payload (zb_zcl_messaging_message_confirm_payload_t). cb - Callback which should be called when the ZCL stack receives APS ack.