openthread_sys

Function otInstanceErasePersistentInfo

Source
pub unsafe extern "C" fn otInstanceErasePersistentInfo(
    aInstance: *mut otInstance,
) -> otError
Expand description

Erases all the OpenThread persistent info (network settings) stored on non-volatile memory. Erase is successful only if the device is in disabled state/role.

@param[in] aInstance A pointer to an OpenThread instance.

@retval OT_ERROR_NONE All persistent info/state was erased successfully. @retval OT_ERROR_INVALID_STATE Device is not in disabled state/role.