I can’t find out how to use otThreadGetChildNextIp6Address
. I am using two devices, one is the leader and the other is a child. I need the leader to get child addresses, is it possible to do it with this API?
I have tried with arguments below but it returned OT_ERROR_NOT_FOUND
.
aChildIndex
: I have set it to0
. I am quite sure the issue does not come from the index as I usedotThreadGetChildInfoByIndex
above with0
index and it works fine.aIterator
: I have created aotChildIp6AddressIterator
variable and I have passed its address to the API.aAddress
: I have created aotIp6Address
variable and I have passed its address to the API.
Have I missed something?
See the OpenThread CLI implementation for an example of using
otThreadGetChildNextIp6Address()
.