Skip to content

Detach an OT device using Dataset API #8107

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

You must be logged in to vote

To detach specific device, we can call APIs on it to stop/detach directly:

  • otThreadSetEnabled() to stop Thread MLE operation (device will detach immediately)
  • or otThreadDetachGracefully() to do a graceful detach (inform other devices before going away).

Then to move the device to another network, first need to factory reset it (clear non-volatile settings):

  • otInstanceFactoryReset() and/or otInstanceErasePersistentInfo() to erase old persisted dataset on device

Then can add new dataset on it to start/join a new network.


The behavior of "active/pending dataset" is correct/intended. The way to think about this is that Operational Dataset belongs to a Thread mesh and the API is changing …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@farhangj
Comment options

@farhangj
Comment options

@jwhui
Comment options

jwhui Sep 1, 2022
Maintainer

Answer selected by farhangj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants