cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 Zigbee reporting

jboui.1
Associate II

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
		);

1 ACCEPTED SOLUTION

Accepted Solutions
Ouadi
ST Employee

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

View solution in original post

5 REPLIES 5
jboui.1
Associate II

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);

jboui.1
Associate II

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

jboui.1
Associate II

maby i should use ZbZdoBindReq instead of ZbZclAttrReportConfigReq ?

Do you have an example please using ZbZdoBindReq ?

JB1234
Associate II

Did you resolve reporting issue?

What is the solution?

Ouadi
ST Employee

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