如题,关于afStatus_t ZDP_NwkAddrReq( uint8 *IEEEAddress, byte ReqType,
byte StartIndex, byte SecurityEnable )中的StartIndex参数具体是啥意义?可以随便赋值吗?接收方会不会会不会对这个StartIndex做修改?
Viki Shi:
StartIndex – the responding device could have more response items than can fit in a response message, the requester can specify a starting index into the possible response items. Index starts from zero.
具体请参考协议栈中文档ZSTACK API
YiKai Chen:
調用ZDP_NwkAddrReq後設備會回應ZDP_NwkAddrRsp、ZDP_NwkAddrRsp会回伝NWKAddrAssocDevList資料結構反應設備關联表內容,所以StartIndex是讓你指出你要的關联表起始位置的