Runtime configuration for Mesh Friend feature functionality.
More...
Runtime configuration for Mesh Friend feature functionality.
◆ mesh_opt_friend_set()
uint32_t mesh_opt_friend_set |
( |
bool |
enabled | ) |
|
Sets the Friend state.
- Parameters
-
[in] | enabled | Set to true to enable the Friend state. To disable the Friend state, set to false . |
- Return values
-
NRF_SUCCESS | Friend state successfully changed. |
NRF_ERROR_NOT_FOUND | Friend state is not available. |
◆ mesh_opt_friend_get()
uint32_t mesh_opt_friend_get |
( |
bool * |
p_enabled | ) |
|
Gets the Friend state.
- Parameters
-
[out] | p_enabled | Pointer to write the current Friend state. |
- Return values
-
NRF_SUCCESS | Successfully provided the current Friend state. |
NRF_ERROR_NULL | NULL pointer supplied to function. |