nRF5 SDK for Mesh v3.2.0  08c60f6
GATT runtime configuration options (experimental)

Macros

#define MESH_OPT_GATT_PROXY_EID   MESH_OPT_CORE_ID(MESH_OPT_GATT_ID_START + 0)
 Proxy entry ID.
 

Functions

uint32_t mesh_opt_gatt_proxy_set (bool enabled)
 Sets the (GATT) Proxy state. More...
 
uint32_t mesh_opt_gatt_proxy_get (bool *p_enabled)
 Gets the (GATT) Proxy state. More...
 

Detailed Description

Runtime configuration for Mesh GATT functionality

Function Documentation

◆ mesh_opt_gatt_proxy_set()

uint32_t mesh_opt_gatt_proxy_set ( bool  enabled)

Sets the (GATT) Proxy state.

Note
This only enables the proxy service functionality, to actually start advertising the network ID, calling proxy_start() is required.
If the Node Identity state has previously been enabled, the device will not start to advertise its Network IDs until the Node Identity state has timed out.
Parameters
[in]enabledSet to true to enable the Proxy state, false otherwise.
Return values
NRF_SUCCESSSuccessfully started advertisements.
NRF_ERROR_INVALID_STATEIn an invalid for enabling the proxy state.

◆ mesh_opt_gatt_proxy_get()

uint32_t mesh_opt_gatt_proxy_get ( bool *  p_enabled)

Gets the (GATT) Proxy state.

Parameters
[out]p_enabledPointer to write the current Proxy state.
Return values
NRF_SUCCESSSuccessfully provided the current Proxy state.