ot::Instance::ErasePersistentInfo() method
Erases all the OpenThread persistent info (network settings) stored in non-volatile memory. Erase is successful/allowed only if the device is in `disabled` state/role.
Syntax
Error ErasePersistentInfo(void); Return value
kErrorNone All persistent info/state was erased successfully. kErrorInvalidState Device is not in `disabled` state/role.
![]()
Error ErasePersistentInfo(void);
ot::Instance::ErasePersistentInfo() reads 2 variables:
![]()
ot::Instance::ErasePersistentInfo()