Logo
Developing with ZBOSS for Zigbee
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(buffer, DST_ADDR, DST_ADDR_MODE, ENDPOINT_C, ENDPOINT_ED, ZB_AF_HA_PROFILE_ID, ZB_ZCL_ENABLE_DEFAULT_RESPONSE, NULL);

Macro Definition Documentation

§ 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_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_CLUSTER_ID_GROUPS
Definition: zb_zcl_common.h:211
#define ZB_ZCL_GET_SEQ_NUM()
Return next sequence number for ZCL frame.
Definition: zb_zcl_common.h:1463
Definition: zb_zcl_groups.h:95

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