CC2630入网成功后如何关闭data request
时间:10-02
整理:3721RD
点击:
如题,CC2630入网成功后如何关闭data request轮询请求
datarequest是终端节点向父节点轮询时发送的,可以关闭轮询
/* This is used after receiving a data indication to poll immediately
* for queued messages...in milliseconds.
*/
-DQUEUED_POLL_RATE=0
/* This is used after receiving a data confirmation to poll immediately
* for response messages...in milliseconds
*/
-DRESPONSE_POLL_RATE=0
但是这样一会终端就会掉线,必须要重新加入网络才能通信
你可以参考Switch项目里面的修改poll rate的方法
// Change the default poll rate from 1 second to
// the config
// setting (znwk_config.h)
Switch_setPollRate(ZNWK_POLL_RATE);