STM32WB55: Zigbee - Attribute Reporting
- December 13, 2023
- 6 replies
- 8089 views
Hi,
I'm working on implementing attribute reporting on the Zigbee STM32WB55 Evaluation boards. I've attempted to configure attribute reporting in the Zigbee_DevTemp_Server_Coord and Zigbee_DevTemp_Client_Router baseline examples. However, I encountered an issue on the server side where I am unable to perform the Write operation on the attributes. ([DEV TEMP]Failed to initialize initial Temperature)
During my investigation, I came across two APIs, namely ZbZclAttrReportKick() and ZbZclClusterReportCallbackAttach().
Interestingly, without using ZbZclAttrReportKick(), the report callback implemented on the router side is not being triggered. I'm curious about this behavior. The comments suggest that the application might disable automatic periodic reporting, but I'm unsure why this is happening.
Is it not possible to receive the callback output on the client side without calling ZbZclAttrReportKick()?
Here are the comments on ZbZclAttrReportKick();
/**
* This function is called to manually drive the attribute reporting mechanism.
* The application may disable the automatic periodic reporting by setting the Network
* Attribute 'ZB_NWK_NIB_ID_DisablePeriodicTimers' to 1.
* cluster Cluster instance
* callback Callback that is called once all reports have been sent. The 'next_timeout'
* parameter is the time until the next scheduled report, in milliseconds.
* arg Callback argument
* @return ZCL Status Code. If not ZCL_STATUS_SUCCESS, then callback will not be called.
*/
enum ZclStatusCodeT ZbZclAttrReportKick(struct ZbZclClusterT *cluster, bool send_all,
void (*callback)(struct ZbZclClusterT *cluster, unsigned int next_timeout, void *arg), void *arg);
Objective: My primary goal is to retrieve updated attribute values on the client device whenever changes occur on the server side.
Inquiry 1: I require clarification regarding the unsuccessful Write operation.
Inquiry 2: I need further understanding and information about the relevant APIs.
Inquiry 3: I'm interested in any additional useful details related to Attribute Reporting.
I've provided the files for both the coordinator and the router for your reference.
Your insights on this matter would be appreciated.
--
Thanks in advance,
Naani Ch
