
Data Structures | |
| struct | zb_zcl_groups_add_group_req_s |
| Add group command structure. More... | |
| struct | zb_zcl_groups_add_group_res_s |
| Add group response command structure. More... | |
Macros | |
| #define | ZB_ZCL_GROUPS_GET_ADD_GROUP_REQ(data_buf, add_group_req) |
| Parses Add group command and fills in data request structure. If request contains invalid data, ZB_ZCL_NULL_ID is stored as group_id. More... | |
| #define | ZB_ZCL_GROUPS_GET_ADD_GROUP_RES(data_buf, add_group_res) |
| Parses Add group response command and returns response data structure or NULL if request contains invalid data. More... | |
| #define | ZB_ZCL_GROUPS_SEND_ADD_GROUP_REQ( buffer, addr, dst_addr_mode, dst_ep, ep, prfl_id, def_resp, cb, group_id) |
| Send Add group command. More... | |
Typedefs | |
| typedef struct zb_zcl_groups_add_group_req_s | zb_zcl_groups_add_group_req_t |
| Add group command structure. More... | |
| typedef struct zb_zcl_groups_add_group_res_s | zb_zcl_groups_add_group_res_t |
| Add group response command structure. More... | |
Add group request and response commands have simple payload. Response command is being filled and sent by ZCL internals.
Filling and sending Add Group request:
| #define ZB_ZCL_GROUPS_GET_ADD_GROUP_REQ | ( | data_buf, | |
| add_group_req | |||
| ) |
Parses Add group command and fills in data request structure. If request contains invalid data, ZB_ZCL_NULL_ID is stored as group_id.
| data_buf | - pointer to zb_buf_t buffer containing command request data |
| add_group_req | - variable to save command request |
| #define ZB_ZCL_GROUPS_GET_ADD_GROUP_RES | ( | data_buf, | |
| add_group_res | |||
| ) |
Parses Add group response command and returns response data structure or NULL if request contains invalid data.
| data_buf | - pointer to zb_buf_t buffer containing command response data |
| add_group_res | - out pointer to zb_zcl_groups_add_group_res_t, containing command response record |
| #define ZB_ZCL_GROUPS_SEND_ADD_GROUP_REQ | ( | buffer, | |
| addr, | |||
| dst_addr_mode, | |||
| dst_ep, | |||
| ep, | |||
| prfl_id, | |||
| def_resp, | |||
| cb, | |||
| group_id | |||
| ) |
Send Add group command.
| 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 |
| group_id | - group ID to add |
| typedef struct zb_zcl_groups_add_group_req_s zb_zcl_groups_add_group_req_t |
Add group command structure.
| typedef struct zb_zcl_groups_add_group_res_s zb_zcl_groups_add_group_res_t |
Add group response command structure.