Skip to content

Get local ip address after thread/network is setup #10601

Closed Answered by abtink
nandra asked this question in Q&A
Discussion options

You must be logged in to vote

Some related APIs and mechansims to check:

  • otStateChangedCallback mechasnim for event notifications:
    #define OT_CHANGED_IP6_ADDRESS_ADDED (1U << 0) ///< IPv6 address was added
    #define OT_CHANGED_IP6_ADDRESS_REMOVED (1U << 1) ///< IPv6 address was removed
    #define OT_CHANGED_THREAD_ROLE (1U << 2) ///< Role (disabled, detached, child, router, leader) changed
    #define OT_CHANGED_THREAD_LL_ADDR (1U << 3) ///< The link-local address changed
    #define OT_CHANGED_THREAD_ML_ADDR (1U << 4) ///< The mesh-local address changed
    #define OT_CHANGED_THREAD_RLOC_ADDED (1U << 5) ///< RLOC was added

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by abtink
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #10600 on August 12, 2024 20:17.