nRF5 SDK for Mesh v2.2.0
Migration from v1.0.1 to v2.0.0

This guide describes the migration process from nRF5 SDK for Mesh version 1.0.1 to version 2.0.0.

Initialization

In v1.0.1, the nrf_mesh_sdk and nrf_mesh_node_config modules could both be used for initializing a mesh device, and they had partly overlapping functionality. They have now been replaced by a single set of non overlapping modules:

The initialization code of the examples has now been restructured into an initialization phase and a start phase, following the same pattern as the nRF5 SDK examples. We strongly advise user applications to do the same. We have also added an execution_start() function to avoid the risk of race conditions during the start phase.

Error handling

Following the same pattern as the nRF5 SDK, weak implementations of app_error_fault_handler (in examples/common/src/app_error_weak.c) and mesh_assertion_handler (in examples/common/src/assertion_handler_weak.c) have been provided. Instead of installing error handlers as callbacks, these functions are now used directly by the nRF5 SDK for Mesh error handling. They can be overloaded by the user application if needed.

nRF5 SDK

Files from the nRF5 SDK are no longer included as part of the nRF5 SDK for Mesh release. Instead, the user is supposed to download the nRF5 SDK separately and provide a link to the nRF5 SDK folder when building the mesh code. See Retrieve nRF SDK for more details.

Non backwards compatible API changes

These are API changes that will break an existing application if ignored.

access.h

access_reliable.h

device_state_manager.h

nrf_mesh.h

nrf_mesh_events.h

nrf_mesh_prov.h

nrf_mesh_prov_events.h

config_client.h:

health_client.h:

simple_on_off_client.h

nrf_mesh_config_app.h

Backwards compatible API changes

These changes are API additions that will not break an existing application if ignored.

device_state_manager.h

nrf_mesh.h

nrf_mesh_events.h

config_client.h:

health_client.h:

simple_on_off_client.h

simple_on_off_server.h

access_config.h


Documentation feedback | Developer Zone | Subscribe | Updated