Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Proxy. More...
Data Structures | |
struct | bt_mesh_proxy_cb |
Callbacks for the Proxy feature. More... | |
Macros | |
#define | BT_MESH_PROXY_CB_DEFINE(_name) |
Register a callback structure for Proxy events. | |
Functions | |
int | bt_mesh_proxy_identity_enable (void) |
Enable advertising with Node Identity. | |
int | bt_mesh_proxy_private_identity_enable (void) |
Enable advertising with Private Node Identity. | |
int | bt_mesh_proxy_connect (uint16_t net_idx) |
Allow Proxy Client to auto connect to a network. | |
int | bt_mesh_proxy_disconnect (uint16_t net_idx) |
Disallow Proxy Client to auto connect to a network. | |
int | bt_mesh_proxy_solicit (uint16_t net_idx) |
Schedule advertising of Solicitation PDUs. | |
Proxy.
#define BT_MESH_PROXY_CB_DEFINE | ( | _name | ) |
#include <include/zephyr/bluetooth/mesh/proxy.h>
Register a callback structure for Proxy events.
Registers a structure with callback functions that gets called on various Proxy events.
_name | Name of callback structure. |
int bt_mesh_proxy_connect | ( | uint16_t | net_idx | ) |
#include <include/zephyr/bluetooth/mesh/proxy.h>
Allow Proxy Client to auto connect to a network.
This API allows a proxy client to auto-connect a given network.
net_idx | Network Key Index |
int bt_mesh_proxy_disconnect | ( | uint16_t | net_idx | ) |
#include <include/zephyr/bluetooth/mesh/proxy.h>
Disallow Proxy Client to auto connect to a network.
This API disallows a proxy client to connect a given network.
net_idx | Network Key Index |
int bt_mesh_proxy_identity_enable | ( | void | ) |
#include <include/zephyr/bluetooth/mesh/proxy.h>
Enable advertising with Node Identity.
This API requires that GATT Proxy support has been enabled. Once called each subnet will start advertising using Node Identity for the next 60 seconds.
int bt_mesh_proxy_private_identity_enable | ( | void | ) |
#include <include/zephyr/bluetooth/mesh/proxy.h>
Enable advertising with Private Node Identity.
This API requires that GATT Proxy support has been enabled. Once called each subnet will start advertising using Private Node Identity for the next 60 seconds.
int bt_mesh_proxy_solicit | ( | uint16_t | net_idx | ) |
#include <include/zephyr/bluetooth/mesh/proxy.h>
Schedule advertising of Solicitation PDUs.
Once called, the device will schedule advertising Solicitation PDUs for the amount of time defined by adv_int
* (CONFIG_BT_MESH_SOL_ADV_XMIT
+ 1), where adv_int
is 20ms for Bluetooth v5.0 or higher, or 100ms otherwise.
If the number of advertised Solicitation PDUs reached 0xFFFFFF, the advertisements will no longer be started until the node is reprovisioned.
net_idx | Network Key Index |