bt_mesh_gatt_proxy_set() function
Enable or disable the GATT Proxy feature. Support for the GATT Proxy feature must be enabled through the @c CONFIG_BT_MESH_GATT_PROXY configuration option.
Arguments
gatt_proxy
New GATT Proxy state. Must be one of BT_MESH_FEATURE_ENABLED and BT_MESH_FEATURE_DISABLED.
Return value
0 Successfully changed the GATT Proxy feature state. -ENOTSUP The GATT Proxy feature is not supported. -EINVAL Invalid parameter. -EALREADY Already in the given state.
Notes
The GATT Proxy feature only controls a Proxy node's ability to relay messages to the mesh network. A node that supports GATT Proxy will still advertise Connectable Proxy beacons, even if the feature is disabled. The Proxy feature can only be fully disabled through compile time configuration.