|
| zb_ret_t | zb_zcl_start_attr_reporting (zb_uint8_t ep, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id) |
| | Start attribute reporting. More...
|
| |
| zb_ret_t | zb_zcl_start_attr_reporting_manuf (zb_uint8_t ep, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id, zb_uint16_t manuf_code) |
| | Start attribute reporting. More...
|
| |
| zb_ret_t | zb_zcl_stop_attr_reporting (zb_uint8_t ep, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id) |
| | Stop attribute reporting. More...
|
| |
| zb_ret_t | zb_zcl_stop_attr_reporting_manuf (zb_uint8_t ep, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id, zb_uint16_t manuf_code) |
| | Stop attribute reporting. More...
|
| |
| zb_bool_t | zcl_is_attr_reported (zb_uint8_t ep, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id) |
| | Check if an attribute is configured for reporting or not. More...
|
| |
| zb_bool_t | zcl_is_attr_reported_manuf (zb_uint8_t ep, zb_uint16_t cluster_id, zb_uint8_t cluster_role, zb_uint16_t attr_id, zb_uint16_t manuf_code) |
| | Check if an attribute is configured for reporting or not. More...
|
| |
| zb_ret_t | zb_zcl_put_reporting_info (zb_zcl_reporting_info_t *rep_info_ptr, zb_bool_t override) |
| | Set reporting configuration for the attribute. More...
|
| |
ZCL attribute reporting being described in ZCL spec, subclauses 2.4.7 through 2.4.11, and subclauses covering clusters with reportable attributes.
API for attribute reporting configuring and configuration details reading documented in: Configure reporting command sending and parsing, and Report attribute command parsing respectively.
Since all events related to attribute reporting are being handled internally, application can be provided with information on attribute report receipt event, and attribute report not received within predefined interval event. To handle these events, application may set "report attribute" and "no reporting" callbacks with ZB_ZCL_SET_REPORT_ATTR_CB() and ZB_ZCL_SET_NO_REPORTING_CB() macros respectively.
- Example
-
{
ZVUNUSED(ep);
ZVUNUSED(attr_type);
ZVUNUSED(value);
ZVUNUSED(addr);
ZVUNUSED(cluster_id);
ZVUNUSED(attr_id);
TRACE_MSG(TRACE_APP1,
">> report_attribute_cb addr %d ep %hd, cluster 0x%x, attr %d",
(FMT__D_H_D_D, addr->
u.
short_addr, ep, cluster_id, attr_id));
TRACE_MSG(TRACE_APP1,
"<< report_attribute_cb", (FMT__0));
}
§ ZB_ZCL_MAX_REPORTING_INTERVAL_DEFAULT
| #define ZB_ZCL_MAX_REPORTING_INTERVAL_DEFAULT 0x0000 |
§ ZB_ZCL_MIN_REPORTING_INTERVAL_DEFAULT
| #define ZB_ZCL_MIN_REPORTING_INTERVAL_DEFAULT 0x0005 |
§ ZB_ZCL_REPORTING_NOT_NEEDED
| #define ZB_ZCL_REPORTING_NOT_NEEDED 0xFFFF |
§ zb_zcl_no_reporting_cb_t
§ zb_zcl_report_attr_cb_t
§ zb_zcl_put_reporting_info()
| zb_ret_t zb_zcl_put_reporting_info |
( |
zb_zcl_reporting_info_t * |
rep_info_ptr, |
|
|
zb_bool_t |
override |
|
) |
| |
§ zb_zcl_start_attr_reporting()
§ zb_zcl_start_attr_reporting_manuf()
§ zb_zcl_stop_attr_reporting()
§ zb_zcl_stop_attr_reporting_manuf()
§ zcl_is_attr_reported()
§ zcl_is_attr_reported_manuf()