主题中讨论的其他器件:Z-STACK
您好!
我正在寻找与 TI-15.4堆栈中的 pollIndCb 函数类似的东西:
// collector.c /*! * @brief Process the MAC Poll Indication Callback * * @param pPollInd - poll indication */ static void pollIndCB(ApiMac_mlmePollInd_t *pPollInd)
通过在该函数上后台运行、我们可以控制向 TI-15.4堆栈中的传感器节点发送数据包的时间。 Z-Stack 中是否有类似的做法?
我浏览了 ZStack.h 中定义的 ZStack_devZDOCBREQ_t、它似乎没有任何类似的成员按名称进行判断。似乎没有任何与 zstackmsg.h 中定义的 ZStack_CmdID 中的 poll 相关的 cmdId。
但我也看到了另一个可能相关的函数:
//ad_app.c /********************************************************************* * @fn ZDO_PollConfirmCB * * @brief This function allows the next higher layer to be * notified of a Poll Confirm. * * @param none * * @return none */ void ZDO_PollConfirmCB( uint8_t status ) { (void)status; // Remove this line if this parameter is used. return; }
这是需要研究的正确函数吗?
谢谢。
ZL