Factory Reset#

The Factory Reset is an application-level software module that manages two types of device resets. The Factory Reset provides possibility for node reset and full reset. Node reset removes all the keys and other settings that have been configured for this node previously. Full reset removes all NVM data as well. Callback is available for both reset types. After callback execution the node reboots itself. After reboot in both reset cases the node enters to unprovisioned state. These interface functions are available also for CLI calls. This component is prepared for integration into SOC applications. This is a No-Code component, but it only handles incoming factory reset commands from other nodes by default.

Function Documentation#

sl_btmesh_initiate_node_reset#

void sl_btmesh_initiate_node_reset (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

This function is called to initiate node reset.


sl_btmesh_initiate_full_reset#

void sl_btmesh_initiate_full_reset (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

This function is called to initiate full reset.


sl_btmesh_factory_reset_on_node_reset#

void sl_btmesh_factory_reset_on_node_reset (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

Called during the factory reset of the node. Note

  • If no implementation is provided in the application then a default weak implementation if provided which is a no-operation. (empty function)


sl_btmesh_factory_reset_on_full_reset#

void sl_btmesh_factory_reset_on_full_reset (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

Called during the factory reset of the device. Note

  • If no implementation is provided in the application then a default weak implementation if provided which is a no-operation. (empty function)


sl_btmesh_app_node_reset_handler#

void sl_btmesh_app_node_reset_handler (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

This function is called to clear nvm used by application components after node reset.