2023-04-21 04:55 AM
Hello,
i am trying to get reporting from a remote temperature sensor Server ( End device)
is use ZbZclAttrReportConfigReq to acheive it. I got a STATUS SUCCES in the callback but the device never send its temperature.
Can you tell me if i miss someting ? Here is my code
Best
enum ZclStatusCodeT status;
struct ZbZclAttrReportConfigT config;
config.dst.mode = ZB_APSDE_ADDRMODE_SHORT;
config.dst.nwkAddr = AT_GetParam1_hex();
config.dst.endpoint = AT_GetParam2_hex();
config.num_records = 1;
config.record_list[0].direction = ZCL_REPORT_DIRECTION_NORMAL;
config.record_list[0].attr_id = 0; // Temperature ID is Zero
config.record_list[0].timeout_period = 30;
config.record_list[0].attr_type = ZCL_DATATYPE_GENERAL_16BIT;
config.record_list[0].min = 5;
config.record_list[0].max = 10;
config.record_list[0].change = 0.1;
status = ZbZclAttrReportConfigReq(
getAppInfo()->temp_meas_client,
&config,
AT_attReportCb,
NULL
);
Solved! Go to Solution.
2023-11-08 06:09 AM
Hello @jboui.1 ,
You may find the answer on these 2 posts concerning the reporting attribute and how to do the configuration using both possible ways local and remote :
Post1 : Zigbee example/help on how to configure and send values
Post2 : STM32WB55 Zigbee - Can't report value ( Including the app_zigbee.c file)
You may also have a look on the Wiki page that describes the binding/reporting management.
Best regards,
Ouadi
2023-04-24 12:04 AM
Is this the proper way to register a callback when for received reporting from a attribute from a remote device ?
/* Temp meas client */
zigbee_app_info.temp_meas_client = ZbZclTempMeasClientAlloc(zigbee_app_info.zb, SW1_ENDPOINT);
assert(zigbee_app_info.temp_meas_client != NULL);
zigbee_app_info.temp_meas_client->report = &APP_ZIGBEE_Temp_meas_client_report;
ZbZclClusterEndpointRegister(zigbee_app_info.temp_meas_client);
2023-04-24 12:34 AM
Is discovered this function
ZbZclClusterReportCallbackAttach
wich i guess should be used to register the callback. But it is not done this way in ST example.
i dont know if this is the reason why i can not trigger the function.
All best
2023-04-24 12:58 AM
maby i should use ZbZdoBindReq instead of ZbZclAttrReportConfigReq ?
Do you have an example please using ZbZdoBindReq ?
2023-08-02 05:19 AM
Did you resolve reporting issue?
What is the solution?
2023-11-08 06:09 AM
Hello @jboui.1 ,
You may find the answer on these 2 posts concerning the reporting attribute and how to do the configuration using both possible ways local and remote :
Post1 : Zigbee example/help on how to configure and send values
Post2 : STM32WB55 Zigbee - Can't report value ( Including the app_zigbee.c file)
You may also have a look on the Wiki page that describes the binding/reporting management.
Best regards,
Ouadi