Runtime configuration for Mesh GATT functionality. More...
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] enabled Set to trueto enable the Proxy state,falseotherwise.
- Return values
-
NRF_SUCCESS The Proxy state is successfully set.
◆ mesh_opt_gatt_proxy_get()
| uint32_t mesh_opt_gatt_proxy_get | ( | bool * | p_enabled | ) |
Gets the (GATT) Proxy state.
- Parameters
-
[out] p_enabled Pointer to write the current Proxy state.
- Return values
-
NRF_SUCCESS Successfully provided the current Proxy state.