| 
    Zephyr Project API
    3.2.0
    
   A Scalable Open Source RTOS 
   | 
 
Runtime Configuration. More...
Modules | |
| Application Configuration | |
| Application Configuration.  | |
| Subnet Configuration | |
| Subnet Configuration.  | |
Macros | |
| #define | BT_MESH_KR_NORMAL 0x00 | 
| #define | BT_MESH_KR_PHASE_1 0x01 | 
| #define | BT_MESH_KR_PHASE_2 0x02 | 
| #define | BT_MESH_KR_PHASE_3 0x03 | 
| #define | BT_MESH_RELAY_DISABLED BT_MESH_FEATURE_DISABLED | 
| #define | BT_MESH_RELAY_ENABLED BT_MESH_FEATURE_ENABLED | 
| #define | BT_MESH_RELAY_NOT_SUPPORTED BT_MESH_FEATURE_NOT_SUPPORTED | 
| #define | BT_MESH_BEACON_DISABLED BT_MESH_FEATURE_DISABLED | 
| #define | BT_MESH_BEACON_ENABLED BT_MESH_FEATURE_ENABLED | 
| #define | BT_MESH_GATT_PROXY_DISABLED BT_MESH_FEATURE_DISABLED | 
| #define | BT_MESH_GATT_PROXY_ENABLED BT_MESH_FEATURE_ENABLED | 
| #define | BT_MESH_GATT_PROXY_NOT_SUPPORTED BT_MESH_FEATURE_NOT_SUPPORTED | 
| #define | BT_MESH_FRIEND_DISABLED BT_MESH_FEATURE_DISABLED | 
| #define | BT_MESH_FRIEND_ENABLED BT_MESH_FEATURE_ENABLED | 
| #define | BT_MESH_FRIEND_NOT_SUPPORTED BT_MESH_FEATURE_NOT_SUPPORTED | 
| #define | BT_MESH_NODE_IDENTITY_STOPPED BT_MESH_FEATURE_DISABLED | 
| #define | BT_MESH_NODE_IDENTITY_RUNNING BT_MESH_FEATURE_ENABLED | 
| #define | BT_MESH_NODE_IDENTITY_NOT_SUPPORTED BT_MESH_FEATURE_NOT_SUPPORTED | 
Enumerations | |
| enum | bt_mesh_feat_state { BT_MESH_FEATURE_DISABLED , BT_MESH_FEATURE_ENABLED , BT_MESH_FEATURE_NOT_SUPPORTED } | 
Functions | |
| void | bt_mesh_beacon_set (bool beacon) | 
| Enable or disable sending of the Secure Network Beacon.  More... | |
| bool | bt_mesh_beacon_enabled (void) | 
| Get the current Secure Network Beacon state.  More... | |
| int | bt_mesh_default_ttl_set (uint8_t default_ttl) | 
| Set the default TTL value.  More... | |
| uint8_t | bt_mesh_default_ttl_get (void) | 
| Get the current default TTL value.  More... | |
| void | bt_mesh_net_transmit_set (uint8_t xmit) | 
| Set the Network Transmit parameters.  More... | |
| uint8_t | bt_mesh_net_transmit_get (void) | 
| Get the current Network Transmit parameters.  More... | |
| int | bt_mesh_relay_set (enum bt_mesh_feat_state relay, uint8_t xmit) | 
| Configure the Relay feature.  More... | |
| enum bt_mesh_feat_state | bt_mesh_relay_get (void) | 
| Get the current Relay feature state.  More... | |
| uint8_t | bt_mesh_relay_retransmit_get (void) | 
| Get the current Relay Retransmit parameters.  More... | |
| int | bt_mesh_gatt_proxy_set (enum bt_mesh_feat_state gatt_proxy) | 
| Enable or disable the GATT Proxy feature.  More... | |
| enum bt_mesh_feat_state | bt_mesh_gatt_proxy_get (void) | 
| Get the current GATT Proxy state.  More... | |
| int | bt_mesh_friend_set (enum bt_mesh_feat_state friendship) | 
| Enable or disable the Friend feature.  More... | |
| enum bt_mesh_feat_state | bt_mesh_friend_get (void) | 
| Get the current Friend state.  More... | |
Runtime Configuration.
| #define BT_MESH_BEACON_DISABLED BT_MESH_FEATURE_DISABLED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_BEACON_ENABLED BT_MESH_FEATURE_ENABLED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_FRIEND_DISABLED BT_MESH_FEATURE_DISABLED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_FRIEND_ENABLED BT_MESH_FEATURE_ENABLED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_FRIEND_NOT_SUPPORTED BT_MESH_FEATURE_NOT_SUPPORTED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_GATT_PROXY_DISABLED BT_MESH_FEATURE_DISABLED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_GATT_PROXY_ENABLED BT_MESH_FEATURE_ENABLED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_GATT_PROXY_NOT_SUPPORTED BT_MESH_FEATURE_NOT_SUPPORTED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_KR_NORMAL 0x00 | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_KR_PHASE_1 0x01 | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_KR_PHASE_2 0x02 | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_KR_PHASE_3 0x03 | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_NODE_IDENTITY_NOT_SUPPORTED BT_MESH_FEATURE_NOT_SUPPORTED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_NODE_IDENTITY_RUNNING BT_MESH_FEATURE_ENABLED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_NODE_IDENTITY_STOPPED BT_MESH_FEATURE_DISABLED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_RELAY_DISABLED BT_MESH_FEATURE_DISABLED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_RELAY_ENABLED BT_MESH_FEATURE_ENABLED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| #define BT_MESH_RELAY_NOT_SUPPORTED BT_MESH_FEATURE_NOT_SUPPORTED | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
| enum bt_mesh_feat_state | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Bluetooth mesh feature states
| bool bt_mesh_beacon_enabled | ( | void | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Get the current Secure Network Beacon state.
| void bt_mesh_beacon_set | ( | bool | beacon | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Enable or disable sending of the Secure Network Beacon.
| beacon | New Secure Network Beacon state. | 
| uint8_t bt_mesh_default_ttl_get | ( | void | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Get the current default TTL value.
| int bt_mesh_default_ttl_set | ( | uint8_t | default_ttl | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Set the default TTL value.
The default TTL value is used when no explicit TTL value is set. Models will use the default TTL value when bt_mesh_msg_ctx::send_ttl is BT_MESH_TTL_DEFAULT.
| default_ttl | The new default TTL value. Valid values are 0x00 and 0x02 to BT_MESH_TTL_MAX. | 
| 0 | Successfully set the default TTL value. | 
| -EINVAL | Invalid TTL value. | 
| enum bt_mesh_feat_state bt_mesh_friend_get | ( | void | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Get the current Friend state.
| int bt_mesh_friend_set | ( | enum bt_mesh_feat_state | friendship | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Enable or disable the Friend feature.
Any active friendships will be terminated immediately if the Friend feature is disabled.
Support for the Friend feature must be enabled through the CONFIG_BT_MESH_FRIEND configuration option.
| friendship | New Friend feature state. Must be one of BT_MESH_FEATURE_ENABLED and BT_MESH_FEATURE_DISABLED. | 
| 0 | Successfully changed the Friend feature state. | 
| -ENOTSUP | The Friend feature is not supported. | 
| -EINVAL | Invalid parameter. | 
| -EALREADY | Already in the given state. | 
| enum bt_mesh_feat_state bt_mesh_gatt_proxy_get | ( | void | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Get the current GATT Proxy state.
| int bt_mesh_gatt_proxy_set | ( | enum bt_mesh_feat_state | gatt_proxy | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Enable or disable the GATT Proxy feature.
Support for the GATT Proxy feature must be enabled through the CONFIG_BT_MESH_GATT_PROXY configuration option.
| gatt_proxy | New GATT Proxy state. Must be one of BT_MESH_FEATURE_ENABLED and BT_MESH_FEATURE_DISABLED. | 
| 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. | 
| uint8_t bt_mesh_net_transmit_get | ( | void | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Get the current Network Transmit parameters.
The BT_MESH_TRANSMIT_COUNT and BT_MESH_TRANSMIT_INT macros can be used to decode the Network Transmit parameters.
| void bt_mesh_net_transmit_set | ( | uint8_t | xmit | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Set the Network Transmit parameters.
The Network Transmit parameters determine the parameters local messages are transmitted with.
| xmit | New Network Transmit parameters. Use BT_MESH_TRANSMIT for encoding. | 
| enum bt_mesh_feat_state bt_mesh_relay_get | ( | void | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Get the current Relay feature state.
| uint8_t bt_mesh_relay_retransmit_get | ( | void | ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
Get the current Relay Retransmit parameters.
The BT_MESH_TRANSMIT_COUNT and BT_MESH_TRANSMIT_INT macros can be used to decode the Relay Retransmit parameters.
| int bt_mesh_relay_set | ( | enum bt_mesh_feat_state | relay, | 
| uint8_t | xmit | ||
| ) | 
#include <include/zephyr/bluetooth/mesh/cfg.h>
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 CONFIG_BT_MESH_RELAY configuration option.
| relay | New Relay feature state. Must be one of BT_MESH_FEATURE_ENABLED and BT_MESH_FEATURE_DISABLED. | 
| xmit | New Relay retransmit parameters. Use BT_MESH_TRANSMIT for encoding. | 
| 0 | Successfully changed the Relay configuration. | 
| -ENOTSUP | The Relay feature is not supported. | 
| -EINVAL | Invalid parameter. | 
| -EALREADY | Already using the given parameters. |