nRF5 SDK for Thread and Zigbee v3.2.0
Macros
Remove All Groups command definitions

Macros

#define ZB_ZCL_GROUPS_SEND_REMOVE_ALL_GROUPS_REQ(buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, def_resp, cb)
 Send Remove all groups command. More...
 

Detailed Description

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(zcl_cmd_buf, DST_ADDR, DST_ADDR_MODE, DST_ENDPOINT,
HA_SWITCH_ENDPOINT, ZB_AF_HA_PROFILE_ID,

For more information see 516_groups sample

Macro Definition Documentation

#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_CONSTRUCT_COMMAND_HEADER_REQ(ptr, ZB_ZCL_GET_SEQ_NUM(), ZB_ZCL_CMD_GROUPS_REMOVE_ALL_GROUPS); \
ZB_ZCL_FINISH_PACKET(buffer, ptr) \
ZB_ZCL_SEND_COMMAND_SHORT( \
buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, ZB_ZCL_CLUSTER_ID_GROUPS, cb); \
}
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1250
Definition: zb_zcl_common.h:205
#define ZB_ZCL_FINISH_PACKET(zbbuf, ptr)
Definition: zb_zcl_common.h:1654
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:116
Definition: zb_zcl_groups.h:109

Send Remove all groups command.

Parameters
bufferto 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

Documentation feedback | Developer Zone | Subscribe | Updated