bt_mesh_relay_set() function
Configure the Relay feature. Enable or disable the Relay feature, and configure the parameters to transmit relayed messages with. Support for the Relay feature must be enabled through the @c CONFIG_BT_MESH_RELAY configuration option. @see BT_MESH_TRANSMIT
Arguments
relay
New Relay feature state. Must be one of BT_MESH_FEATURE_ENABLED and BT_MESH_FEATURE_DISABLED.
Return value
0 Successfully changed the Relay configuration. -ENOTSUP The Relay feature is not supported. -EINVAL Invalid parameter. -EALREADY Already using the given parameters.