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:
◆ ZB_ZCL_GROUPS_SEND_REMOVE_ALL_GROUPS_REQ
#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_FINISH_PACKET(buffer, ptr) \
ZB_ZCL_SEND_COMMAND_SHORT( \
}
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 |