pub unsafe extern "C" fn otThreadDetachGracefully(
aInstance: *mut otInstance,
aCallback: otDetachGracefullyCallback,
aContext: *mut c_void,
) -> otError
Expand description
Notifies other nodes in the network (if any) and then stops Thread protocol operation.
It sends an Address Release if it’s a router, or sets its child timeout to 0 if it’s a child.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aCallback A pointer to a function that is called upon finishing detaching. @param[in] aContext A pointer to callback application-specific context.
@retval OT_ERROR_NONE Successfully started detaching. @retval OT_ERROR_BUSY Detaching is already in progress.