简体   繁体   中英

OpenThread API: How to get child table using OpenThread API?

I have the OpenThread CLI application and I would like to create UDP datagram with the payload consisted of child table information.

So my question is: how to get child table info and which API should I use? I have done some research, and I consider to play with otThreadGetChildInfoByIndex() placed in for/while loop. Does it make sense??

Best regards!

Yes, otThreadGetChildInfoByIndex() is what you are looking for.

You can find an example in OpenThread's CLI implementation.

There is a link to OpenThread Github issue opened by me: https://github.com/openthread/openthread/issues/5259

We discuss there an idea of get_child_table() function implementation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM