你好,
可以注册回调函数获取sync状态。
const zdo_appIndCb_t appCbLst = {
bdb_zdoStartDevCnf,//start device cnf cb
NULL,//reset cnf cb
NULL,//device announce indication cb
sampleSwitch_leaveIndHandler,//leave ind cb
sampleSwitch_leaveCnfHandler,//leave cnf cb
NULL,//nwk update ind cb
NULL,//permit join ind cb
sampleSwitch_syncCnfHandler,//nlme sync cnf cb
NULL,//tc join ind cb
NULL,//tc detects that the frame counter is near limit
};
void sampleSwitch_syncCnfHandler(nlme_sync_cnf_t *syncCnf)
{
u8 status = syncCnf->status;
}
|