以前了解过ZStack-CC2530-2.5.1a,收发数据时,发送端调用AF_DataRequest()函数,接收端通过AF_INCOMING_MSG_CMD就可以接收到数据。
但是在Z-Stack 3.0.2中使用这样的操作无法收发数据。那么应该用什么函数发送和接受数据呢?
哪位了解,麻烦解答一下,谢谢~
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.
你好,感谢你的回复
我在《Zigbee Fundamental Project Development》——Part 2: Send raw data packets over-the-air查看了相关信息
但是我是用IAR基于Z-Stack 3.0.2\Projects\zstack\HomeAutomation\GenericApp进行开发
在GenericApp工程下找不到文档中提到的“Zstackapi_AfDataReq(appServiceTaskId, &pReq);”和“zclSampleSw_processAfIncomingMsgInd”等函数。
就像文档中说的“Sometimes it is desired to send a custom, non-ZCL data packet to a target device.”我就想发送自己的数据而不使用ZCL,应该怎么操作呢?