How to disconnect a device from Thread network? #8304
-
Hi,
After some time, the smartphone sends a command to the device indicating that we want to disconnect from Thread network. My question is: Do we lack some commands to inform the OTBR that this device should be disconnected from Thread network? Thanks for your advices. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Information about the device will eventually time out. The parent maintains a child timeout for each child. Each SRP service has an associated lease time. To explicitly remove its information before detaching from the network, the following APIs are useful:
|
Beta Was this translation helpful? Give feedback.
-
Thank you very much Jonathan. I'm going to add a call to otThreadDetachGracefully() (I already had a call to otSrpClientRemoveHostAndServices()). |
Beta Was this translation helpful? Give feedback.
Information about the device will eventually time out. The parent maintains a child timeout for each child. Each SRP service has an associated lease time.
To explicitly remove its information before detaching from the network, the following APIs are useful: