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.

请教ZHA1.2 中传感器的标准payload foramt

你好!

 向你请教一下问题,谢谢!
我看ZHA1.2例程中SampleTemperatureSensor(温度传感器),找到函数zclSampleTemperatureSensor_SendTemp(),这个函数就是将测量的温度值通过无线发送出去,其中用到zclReport_t结构体。
1、通过上面是否认为这结构体zclReport_t是温度传感器在ZHA中的payload foramt?
2、如果温度传感器的payload format是结构体zclReport_t,那么我可以认为其他传感器是否也可以用这个结构体作为payload format呢?
3、我理解,ZCL底层的数据结构 ZCL Command frame Format=ZCL header+payload format,我理解是否正确呀?
注:目前我们公司准备用烟感、气感、红外、门磁、温湿度、一氧化碳、水浸传感器。

  • 1,report是专门有report的格式的,温度有温度数据的格式,两个不一样。你可以看下ZigBee Home Automation Specification的标准文档

    3, 对的可以这样理解的