Developing with ZBOSS for Zigbee

#include <zb_zcl_commands.h>

Data Fields

zb_uint8_t status
 
zb_uint8_t direction
 
zb_uint16_t attr_id
 
union {
   struct {
      zb_uint8_t   attr_type
 
      zb_uint16_t   min_interval
 
      zb_uint16_t   max_interval
 
      zb_uint8_t   delta [1]
 
   }   clnt
 
   struct {
      zb_uint16_t   timeout
 
   }   srv
 
u
 

Detailed Description

Format of the Attribute Reporting Configuration Record Field Figure 2.22 in ZCL spec. NOTE: it can be various number of attribute recording configuration record fields in Read reporting configuration response

Field Documentation

◆ attr_id

zb_uint16_t zb_zcl_read_reporting_cfg_rsp_s::attr_id

The attribute identifier field is 16 bits in length and shall contain the identifier of the attribute that the reporting configuration details apply to

◆ attr_type

zb_uint8_t zb_zcl_read_reporting_cfg_rsp_s::attr_type

Attribute data type

◆ clnt

struct { ... } zb_zcl_read_reporting_cfg_rsp_s::clnt

clnt: if the direction field is set to 0, then the attribute data type field, the minimum reporting interval field, the maximum reporting interval field and the reportable change field are included in the payload, and the timeoutperiod field is omitted.

◆ delta

zb_uint8_t zb_zcl_read_reporting_cfg_rsp_s::delta[1]

The reportable change field shall contain the minimum change to the attribute that will result in a report being issued. For attributes with 'analog' data type (see Table 2.16) the field has the same data type as the attribute. If the reportable change has not been configured, this field shall contain the invalid value for the relevant data type. For attributes of 'discrete' data type (see Table 2.16) this field is omitted.

◆ direction

zb_uint8_t zb_zcl_read_reporting_cfg_rsp_s::direction

The direction field specifies whether values of the attribute are reported (0x00), or whether reports of the attribute are received (0x01).

◆ max_interval

zb_uint16_t zb_zcl_read_reporting_cfg_rsp_s::max_interval

The maximum reporting interval field is 16 bits in length and shall contain the maximum interval, in seconds, between issuing reports for the attribute specified in the attribute identifier field. If the maximum reporting interval has not been configured, this field shall contain the value 0xffff.

◆ min_interval

zb_uint16_t zb_zcl_read_reporting_cfg_rsp_s::min_interval

The minimum reporting interval field is 16 bits in length and shall contain the minimum interval, in seconds, between issuing reports for the attribute specified in the attribute identifier field. If the minimum reporting interval has not been configured, this field shall contain the value 0xffff.

◆ srv

struct { ... } zb_zcl_read_reporting_cfg_rsp_s::srv

srv: if the direction field is set to 1, then the timeout period field is included in the payload, and the attribute data type field, the minimum reporting interval field, the maximum reporting interval field and the reportable change field are omitted.

◆ status

zb_uint8_t zb_zcl_read_reporting_cfg_rsp_s::status

If the attribute is not implemented on the sender or receiver of the command, whichever is relevant (depending on direction), this field shall be set to UNSUPPORTED_ATTRIBUTE. If the attribute is supported, but is not capable of being reported, this field shall be set to UNREPORTABLE_ATTRIBUTE. Otherwise, this field shall be set to SUCCESS.

◆ timeout

zb_uint16_t zb_zcl_read_reporting_cfg_rsp_s::timeout

The timeout period field is 16 bits in length and shall contain the maximum expected time, in seconds, between received reports for the attribute specified in the attribute identifier field. If the timeout period has not been configured, this field shall contain the value 0xffff.

◆ u

union { ... } zb_zcl_read_reporting_cfg_rsp_s::u

Response contents: different for client and server


The documentation for this struct was generated from the following file: