Zephyr Project API
3.4.0
A Scalable Open Source RTOS
|
Bluetooth mesh Profile APIs. More...
#include <stdbool.h>
#include <stdint.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/iterable_sections.h>
Go to the source code of this file.
Data Structures | |
struct | bt_mesh_dev_capabilities |
struct | bt_mesh_prov |
struct | bt_mesh_lpn_cb |
struct | bt_mesh_friend_cb |
Macros | |
#define | BT_MESH_NET_PRIMARY 0x000 |
#define | BT_MESH_FEAT_RELAY BIT(0) |
#define | BT_MESH_FEAT_PROXY BIT(1) |
#define | BT_MESH_FEAT_FRIEND BIT(2) |
#define | BT_MESH_FEAT_LOW_POWER BIT(3) |
#define | BT_MESH_FEAT_SUPPORTED |
#define | BT_MESH_LPN_CB_DEFINE(_name) |
Register a callback structure for Friendship events. More... | |
#define | BT_MESH_FRIEND_CB_DEFINE(_name) |
Register a callback structure for Friendship events. More... | |
Functions | |
int | bt_mesh_input_string (const char *str) |
Provide provisioning input OOB string. More... | |
int | bt_mesh_input_number (uint32_t num) |
Provide provisioning input OOB number. More... | |
int | bt_mesh_prov_remote_pub_key_set (const uint8_t public_key[64]) |
Provide Device public key. More... | |
int | bt_mesh_auth_method_set_input (bt_mesh_input_action_t action, uint8_t size) |
Use Input OOB authentication. More... | |
int | bt_mesh_auth_method_set_output (bt_mesh_output_action_t action, uint8_t size) |
Use Output OOB authentication. More... | |
int | bt_mesh_auth_method_set_static (const uint8_t *static_val, uint8_t size) |
Use static OOB authentication. More... | |
int | bt_mesh_auth_method_set_none (void) |
Don't use OOB authentication. More... | |
int | bt_mesh_prov_enable (bt_mesh_prov_bearer_t bearers) |
Enable specific provisioning bearers. More... | |
int | bt_mesh_prov_disable (bt_mesh_prov_bearer_t bearers) |
Disable specific provisioning bearers. More... | |
int | bt_mesh_provision (const uint8_t net_key[16], uint16_t net_idx, uint8_t flags, uint32_t iv_index, uint16_t addr, const uint8_t dev_key[16]) |
Provision the local Mesh Node. More... | |
int | bt_mesh_provision_adv (const uint8_t uuid[16], uint16_t net_idx, uint16_t addr, uint8_t attention_duration) |
Provision a Mesh Node using PB-ADV. More... | |
int | bt_mesh_provision_gatt (const uint8_t uuid[16], uint16_t net_idx, uint16_t addr, uint8_t attention_duration) |
Provision a Mesh Node using PB-GATT. More... | |
int | bt_mesh_provision_remote (struct bt_mesh_rpr_cli *cli, const struct bt_mesh_rpr_node *srv, const uint8_t uuid[16], uint16_t net_idx, uint16_t addr) |
Provision a Mesh Node using PB-Remote. More... | |
int | bt_mesh_reprovision_remote (struct bt_mesh_rpr_cli *cli, struct bt_mesh_rpr_node *srv, uint16_t addr, bool comp_change) |
Reprovision a Mesh Node using PB-Remote. More... | |
bool | bt_mesh_is_provisioned (void) |
Check if the local node has been provisioned. More... | |
int | bt_mesh_init (const struct bt_mesh_prov *prov, const struct bt_mesh_comp *comp) |
Initialize Mesh support. More... | |
void | bt_mesh_reset (void) |
Reset the state of the local Mesh node. More... | |
int | bt_mesh_suspend (void) |
Suspend the Mesh network temporarily. More... | |
int | bt_mesh_resume (void) |
Resume a suspended Mesh network. More... | |
void | bt_mesh_iv_update_test (bool enable) |
Toggle the IV Update test mode. More... | |
bool | bt_mesh_iv_update (void) |
Toggle the IV Update state. More... | |
int | bt_mesh_lpn_set (bool enable) |
Toggle the Low Power feature of the local device. More... | |
int | bt_mesh_lpn_poll (void) |
Send out a Friend Poll message. More... | |
int | bt_mesh_friend_terminate (uint16_t lpn_addr) |
Terminate Friendship. More... | |
void | bt_mesh_rpl_pending_store (uint16_t addr) |
Store pending RPL entry(ies) in the persistent storage. More... | |
Bluetooth mesh Profile APIs.