nRF5 SDK for Thread and Zigbee v1.0.0
Data Structures | Typedefs | Enumerations
Discover attributes request and response sending and parsing.

Data Structures

struct  zb_zcl_disc_attr_req_s
 ZCL Discover Attribute Command frame. More...
 
struct  zb_zcl_disc_attr_info_s
 ZCL Description for Discover Attribute Response frame. More...
 
struct  zb_zcl_disc_attr_res_s
 ZCL Discover Attribute Response frame. More...
 

Typedefs

typedef struct
zb_zcl_disc_attr_req_s 
zb_zcl_disc_attr_req_t
 ZCL Discover Attribute Command frame. More...
 
typedef struct
zb_zcl_disc_attr_info_s 
zb_zcl_disc_attr_info_t
 ZCL Description for Discover Attribute Response frame. More...
 
typedef struct
zb_zcl_disc_attr_res_s 
zb_zcl_disc_attr_res_t
 ZCL Discover Attribute Response frame. More...
 
typedef enum zb_zcl_disc_complete_e zb_zcl_disc_complete_t
 ZCL Discover Attribute Response - complete field. More...
 

Enumerations

enum  zb_zcl_disc_complete_e { ZB_ZCL_DISC_NON_COMPLETE = 0x00, ZB_ZCL_DISC_COMPLETE = 0x01 }
 ZCL Discover Attribute Response - complete field. More...
 

Detailed Description

Discover attributes command described in ZCL spec, subclauses 2.4.13 and 2.4.14.

Read attributes request command can be formed and sent as in following snippet:

ZB_ZCL_GENERAL_DISC_ATTR_REQ(zcl_cmd_buf, cmd_ptr, ZB_ZCL_ENABLE_DEFAULT_RESPONSE,
DUT_ADDR, DUT_ADDR_MODE, DUT_ENDPOINT,

Discover attributes response can be parsed as:

ZB_ZCL_GENERAL_GET_COMPLETE_DISC_RES(buf, complete);
ZB_ZCL_GENERAL_GET_NEXT_DISC_ATTR_RES(buf, disc_attr_info);

until allocated buffer space exceeds.

Discover attributes request parsing and response filling and sending is implemented in ZCL library internal functions.

For more information see any HA sample

Typedef Documentation

ZCL Description for Discover Attribute Response frame.

See Also
ZCL spec, zb_zcl_read_attr 2.4.14 Discover Attribute Response

ZCL Discover Attribute Command frame.

See Also
ZCL spec, zb_zcl_disc_attr 2.4.13 Discover Attributes Command

ZCL Discover Attribute Response frame.

See Also
ZCL spec, zb_zcl_read_attr 2.4.15 Discover Attribute Response
Note
Command frame contains variable number of parameters

ZCL Discover Attribute Response - complete field.

See Also
ZCL spec, clause 2.4.14

Enumeration Type Documentation

ZCL Discover Attribute Response - complete field.

See Also
ZCL spec, clause 2.4.14
Enumerator
ZB_ZCL_DISC_NON_COMPLETE 

more attributes to be discovered

ZB_ZCL_DISC_COMPLETE 

no more attributes to be discovered


Documentation feedback | Developer Zone | Subscribe | Updated