This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] LP-CC2652RB:故障报告属性

Guru**** 2546020 points
Other Parts Discussed in Thread: SYSCONFIG, Z-STACK

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/zigbee-thread-group/zigbee-and-thread/f/zigbee-thread-forum/1080598/lp-cc2652rb-trouble-reporting-attributes

部件号:LP-CC2652RB
在“线程:sysconfigZ-stack”中讨论的其它部分

您好,

我的设备应该定期报告测量结果,就像温度传感器一样。 我在 Z-Stack sysconfig 中配置了群集,我有一个定期进行正确测量的例程。 在此例程中,我复制了温度示例中使用的报告代码。 但是,没有来自设备的 ZCL 报告数据包。  

这是我用于报告的代码:  

// Read Temperature
sensor_TemperatureMeasurement_MeasuredValue = Temperature_getTemperature() * 100;

// report temperature
zstack_bdbRepChangedAttrValueReq_t tempReq;
tempReq.attrID = ATTRID_TEMPERATURE_MEASUREMENT_MEASURED_VALUE;
tempReq.cluster = ZCL_CLUSTER_ID_MS_TEMPERATURE_MEASUREMENT;
tempReq.endpoint = SENSOR_ENDPOINT;

Zstackapi_bdbRepChangedAttrValueReq(sensor_serviceTaskId,&tempReq);

我很确定我错过了一些简单的东西...谢谢!