Developing with ZBOSS for Zigbee
ZDO groups management

Data Structures

struct  zb_zdo_mgmt_permit_joining_resp_s
 Response from zb_zdo_mgmt_permit_joining_req.
More...
 
struct  zb_zdo_not_supported_resp_s
 Not Supported Response. More...
 
struct  zb_zdo_mgmt_nwk_ieee_joining_list_param_s
 Parameters for Mgmt_NWK_IEEE_Joining_List_req. More...
 
struct  zb_zdo_mgmt_nwk_ieee_joining_list_req_s
 Request for Mgmt_NWK_IEEE_Joining_List_req. More...
 
struct  zb_zdo_mgmt_nwk_ieee_joining_list_rsp_s
 Response for Mgmt_NWK_IEEE_Joining_List_rsp. More...
 

Typedefs

typedef struct zb_zdo_mgmt_permit_joining_resp_s zb_zdo_mgmt_permit_joining_resp_t
 Response from zb_zdo_mgmt_permit_joining_req.

 
typedef struct zb_zdo_not_supported_resp_s zb_zdo_not_supported_resp_t
 Not Supported Response.
 
typedef struct zb_zdo_mgmt_nwk_ieee_joining_list_param_s zb_zdo_mgmt_nwk_ieee_joining_list_param_t
 Parameters for Mgmt_NWK_IEEE_Joining_List_req. More...
 
typedef struct zb_zdo_mgmt_nwk_ieee_joining_list_req_s zb_zdo_mgmt_nwk_ieee_joining_list_req_t
 Request for Mgmt_NWK_IEEE_Joining_List_req. More...
 
typedef struct zb_zdo_mgmt_nwk_ieee_joining_list_rsp_s zb_zdo_mgmt_nwk_ieee_joining_list_rsp_t
 Response for Mgmt_NWK_IEEE_Joining_List_rsp. More...
 

Functions

void zb_zdo_add_group_req (zb_uint8_t param)
 ZDO interface for ADD-GROUP.request. More...
 
void zb_zdo_remove_group_req (zb_uint8_t param)
 ZDO interface for REMOVE-GROUP.request. More...
 
void zb_zdo_remove_all_groups_req (zb_uint8_t param)
 ZDO interface for REMOVE-ALL-GROUPS.request. More...
 
void zb_zdo_get_group_membership_req (zb_uint8_t param)
 ZDO interface for ZCL Get Group Membership Command. More...
 

Detailed Description

Typedef Documentation

◆ zb_zdo_mgmt_nwk_ieee_joining_list_param_t

Parameters for Mgmt_NWK_IEEE_Joining_List_req.

See also
ZB r22 spec, subclause 2.4.3.3.11.

◆ zb_zdo_mgmt_nwk_ieee_joining_list_req_t

Request for Mgmt_NWK_IEEE_Joining_List_req.

See also
ZB r22 spec, subclause 2.4.3.3.11.

◆ zb_zdo_mgmt_nwk_ieee_joining_list_rsp_t

Response for Mgmt_NWK_IEEE_Joining_List_rsp.

See also
ZB spec, subclause 2.4.4.4.11.

Function Documentation

◆ zb_zdo_add_group_req()

void zb_zdo_add_group_req ( zb_uint8_t  param)

ZDO interface for ADD-GROUP.request.

Note
zb_apsme_add_group_request does not call confirm callback.
Parameters
param- (in/out) buffer with parameters

Example

TRACE_MSG(TRACE_APP1, "> add_to_test_group buf %p", (FMT__P, buf));
ZB_BZERO(aps_req, sizeof(*aps_req));
aps_req->group_address = TEST_GROUP_ID;
aps_req->endpoint = HA_SWITCH_ENDPOINT;

◆ zb_zdo_get_group_membership_req()

void zb_zdo_get_group_membership_req ( zb_uint8_t  param)

ZDO interface for ZCL Get Group Membership Command.

Parameters
param- (in/out) buffer with parameters

◆ zb_zdo_remove_all_groups_req()

void zb_zdo_remove_all_groups_req ( zb_uint8_t  param)

ZDO interface for REMOVE-ALL-GROUPS.request.

Parameters
param- (in/out) buffer with parameters

◆ zb_zdo_remove_group_req()

void zb_zdo_remove_group_req ( zb_uint8_t  param)

ZDO interface for REMOVE-GROUP.request.

Parameters
param- (in/out) buffer with parameters
void group_remove_conf1(zb_uint8_t param)
{
zb_buf_t *buf = ZB_BUF_FROM_REF(param);
zb_apsme_remove_group_req_t *req = ZB_GET_BUF_PARAM(ZB_BUF_FROM_REF(param), zb_apsme_add_group_req_t);
zb_uint16_t grp_addr = req->group_address;
if (buf->u.hdr.status == RET_OK)
{
TRACE_MSG(TRACE_APS1, "[1] Remove from group %hd with endpoint %hd - confirm", (FMT__H_H, req->group_address, req->endpoint));
req = ZB_GET_BUF_PARAM(buf, zb_apsme_remove_group_req_t);
req->group_address = grp_addr;
req->endpoint = 0xEF;
ZDO_START_ROUTINE_WITH_CALLBACK(param, zb_zdo_remove_group_req, group_remove_conf2);
}
}
zb_apsme_add_group_req_s::endpoint
zb_uint8_t endpoint
Definition: zboss_api_aps.h:335
zb_apsme_add_group_req_s::group_address
zb_uint16_t group_address
Definition: zboss_api_aps.h:334
zb_uint8_t
unsigned char zb_uint8_t
Project-local 1-byte unsigned int type.
Definition: zb_types.h:147
TRACE_MSG
#define TRACE_MSG(lm, fmts, args)
Put trace output.
Definition: zb_trace.h:369
zb_buf_reuse
#define zb_buf_reuse(buf)
Definition: zboss_api_buf.h:402
ZB_BUF_GET_PARAM
#define ZB_BUF_GET_PARAM(buf, type)
Definition: zboss_api_buf.h:457
zb_zdo_remove_group_req
void zb_zdo_remove_group_req(zb_uint8_t param)
ZDO interface for REMOVE-GROUP.request.
zb_apsme_add_group_req_s
APSME-ADD-GROUP.request primitive parameters, should be passed to zb_zdo_add_group_req()
Definition: zboss_api_aps.h:332
zb_zdo_add_group_req
void zb_zdo_add_group_req(zb_uint8_t param)
ZDO interface for ADD-GROUP.request.
RET_OK
#define RET_OK
Error codes for non-void stack functions. In general, function can return OK, BLOCKED or some error....
Definition: zb_errors.h:79
zb_uint16_t
unsigned short zb_uint16_t
Project-local 2-byte unsigned int type.
Definition: zb_types.h:151