This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于函数afStatus_t ZDP_NwkAddrReq

如题,关于afStatus_t ZDP_NwkAddrReq( uint8 *IEEEAddress, byte ReqType,
byte StartIndex, byte SecurityEnable )中的StartIndex参数具体是啥意义?可以随便赋值吗?接收方会不会会不会对这个StartIndex做修改?

  • 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
  • 調用ZDP_NwkAddrReq後設備會回應ZDP_NwkAddrRsp、ZDP_NwkAddrRsp会回伝NWKAddrAssocDevList資料結構反應設備關联表內容,所以StartIndex是讓你指出你要的關联表起始位置的