我不知道如何使用otThreadGetChildNextIp6Address. 我正在使用两个设备,一个是领导者,另一个是孩子。我需要leader来获取子地址,这个API可以做到吗?
我尝试过使用下面的参数,但它返回了OT_ERROR_NOT_FOUND.
aChildIndex: 我已经设置了0。我很确定问题不是来自我otThreadGetChildInfoByIndex上面使用索引的0索引,它工作正常。aIterator:我创建了一个otChildIp6AddressIterator变量,并将其地址传递给 API。aAddress:我创建了一个otIp6Address变量,并将其地址传递给 API。
我错过了什么吗?