nRF5 SDK for Mesh v1.0.1
Modules | Functions
Node configuration

Application support module for common mesh behavior. More...

Modules

 Types
 Node configuration type defintions.
 

Functions

uint32_t nrf_mesh_node_config (const nrf_mesh_node_config_params_t *p_params)
 Configures the mesh node. More...
 
void nrf_mesh_node_config_clear (void)
 Clears the saved configuration and network state of the mesh node. More...
 

Detailed Description

Application support module for common mesh behavior.

The node config module is a helper module designed to make it easy to get started developing applications with the mesh, by providing an abstraction of the common configuration APIs. Contrary to the base API, the node config module aims to satisfy only the most common usage scenarios, which makes it suitable for simple applications.

It is recommended to start out using the node config module as a scaffolding, then phase it out if fine-grained control is needed.

Function Documentation

◆ nrf_mesh_node_config()

uint32_t nrf_mesh_node_config ( const nrf_mesh_node_config_params_t p_params)

Configures the mesh node.

This function wraps all the functionality required to go from the boot-up state to a fully functional mesh node.

Return values
NRF_ERROR_NULLThe p_params parameter was NULL.
NRF_ERROR_INVALID_STATEThe node has already been configured.
NRF_ERROR_INVALID_PARAMOne or more of the parameters in the p_params structure were invalid.
NRF_SUCCESSNode initialization was successfully started. However, the node initialization should not be considered finished until the configuration complete callback has been called.

◆ nrf_mesh_node_config_clear()

void nrf_mesh_node_config_clear ( void  )

Clears the saved configuration and network state of the mesh node.

Warning
This function must not be called from an interrupt.

Documentation feedback | Developer Zone | Subscribe | Updated