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.
3.0.2 协议栈基于GenericApp例程收发私有数据
应用是这样的,协调器收到串口私有数据后发送给终端,终端收到后再通过串口发出去,
反过来也是一样的,终端收到串口私有数据后发送给协调器,协调器收到后再通过串口发出去,
1.这个应用场景:该使用什么API去实现?是用zcl_SendReportCmd互发还是用AF_DataRequest互发,
2.如果是用zcl_SendReportCmd,需要自定义哪些参数?用什么cluster和attribute?有没有例程可以参考?
3.如果是用AF_DataRequest,我不知道该函数的参数如何初始化?有没有相关的例程可以参考?
1.这个应用场景:该使用什么API去实现?是用zcl_SendReportCmd互发还是用AF_DataRequest互发:
取决你自己的想法。
2.zcl_SendReportCmd 去参考:
C:\Texas Instruments\Z-Stack Home 1.2.2a.44539\Projects\zstack\HomeAutomation\SampleTemperatureSensor
由于ZigBee3.0例程使用的BDB report, zcl_SendReportCmd可以去参考1.22A
3.AF_DataRequest去看同样的1.22A
此外你搞了这么久最好方式是直接定义函数原型,上面的都有英文注释写的很清楚。