-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Yes, a Leader can serve as a Commissioner. Your successful results using the CLI demonstrates this. Note that the CLI is simply built on top of the OT API and serves as an example of using OT API. I would suggest reviewing the CLI implementation to understand how best to call the OT APIs directly. https://github.com/openthread/openthread/blob/main/src/cli/cli_commissioner.cpp |
Beta Was this translation helpful? Give feedback.
Register a callback with
otSetStateChangedCallback()
to receive events when states change. You can call OT APIs in the callback.