请问ZDO_SrcRtgIndCB这个函数,什么条件下会调用
Susan Yang:
参考工程内的说明可知该函数用于通知收到的ZDO可用的src路由记录。
/********************************************************************** @fnZDO_SrcRtgIndCB** @briefThis function notifies the ZDO available src route record received.** @paramsrcAddr - source address of the source route* @paramrelayCnt - number of devices in the relay list* @paramrelayList - relay list of the source route** @returnnone*/ void ZDO_SrcRtgIndCB (uint16 srcAddr, uint8 relayCnt, uint16* pRelayList ) {zdoSrcRtg_t srcRtg;srcRtg.srcAddr = srcAddr;srcRtg.relayCnt = relayCnt;srcRtg.pRelayList = pRelayList;if( zdoCBFunc[ZDO_SRC_RTG_IND_CBID] != NULL ){zdoCBFunc[ZDO_SRC_RTG_IND_CBID]( (void*)&srcRtg );} }
tao zhang25:
回复 Susan Yang:
那调用ZDO_SrcRtgIndCB这个函数在哪呢??