Remove All Groups command has only request form, and has no payload. Command is being processed in ZCL internals. If not disabled, command can be responded with Default Response command.
- Example
- Remove All Groups command sending:
#define ZB_ZCL_GROUPS_SEND_REMOVE_ALL_GROUPS_REQ |
( |
|
buffer, |
|
|
|
addr, |
|
|
|
dst_addr_mode, |
|
|
|
dst_ep, |
|
|
|
ep, |
|
|
|
prfl_id, |
|
|
|
def_resp, |
|
|
|
cb |
|
) |
| |
Value:
zb_uint8_t* ptr = ZB_ZCL_START_PACKET_REQ(buffer) \
ZB_ZCL_CONSTRUCT_SPECIFIC_COMMAND_REQ_FRAME_CONTROL(ptr, def_resp) \
ZB_ZCL_SEND_COMMAND_SHORT( \
}
#define ZB_ZCL_CLUSTER_ID_GROUPS
Definition: zb_zcl_common.h:228
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1443
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1823
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:155
Definition: zb_zcl_groups.h:114
Send Remove all groups command.
- Parameters
-
buffer | to put packet to |
addr | - address to send packet to |
dst_addr_mode | - addressing mode |
dst_ep | - destination endpoint |
ep | - sending endpoint |
prfl_id | - profile identifier |
def_resp | - enable/disable default response |
cb | - callback for getting command send status |