簡體   English   中英

OpenThread API:如何使用 OpenThread API 獲取子表?

[英]OpenThread API: How to get child table using OpenThread API?

我有 OpenThread CLI 應用程序,我想創建 UDP 數據報,其有效負載由子表信息組成。

所以我的問題是:如何獲取子表信息以及我應該使用哪個 API? 我已經做了一些研究,我考慮使用放置在 for/while 循環中的otThreadGetChildInfoByIndex() 是否有意義??

此致!

是的, otThreadGetChildInfoByIndex()是您正在尋找的。

您可以在 OpenThread 的CLI實現中找到一個示例。

我打開了 OpenThread Github 問題的鏈接: https://github.com/openthread/openthread/issues/5259

我們在那里討論get_child_table() function 實現的想法。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM