Zephyr Project API  3.3.0
A Scalable Open Source RTOS

Proxy. More...

Data Structures

struct  bt_mesh_proxy_cb
 

Macros

#define BT_MESH_PROXY_CB_DEFINE(_name)
 Register a callback structure for Proxy events. More...
 

Functions

int bt_mesh_proxy_identity_enable (void)
 Enable advertising with Node Identity. More...
 
int bt_mesh_proxy_connect (uint16_t net_idx)
 Allow Proxy Client to auto connect to a network. More...
 
int bt_mesh_proxy_disconnect (uint16_t net_idx)
 Disallow Proxy Client to auto connect to a network. More...
 

Detailed Description

Proxy.

Macro Definition Documentation

◆ BT_MESH_PROXY_CB_DEFINE

#define BT_MESH_PROXY_CB_DEFINE (   _name)

#include <include/zephyr/bluetooth/mesh/proxy.h>

Value:
static const STRUCT_SECTION_ITERABLE( \
bt_mesh_proxy_cb, _CONCAT(bt_mesh_proxy_cb_, _name))
#define STRUCT_SECTION_ITERABLE(struct_type, name)
Defines a new element for an iterable section.
Definition: common.h:216
Definition: proxy.h:28

Register a callback structure for Proxy events.

Registers a structure with callback functions that gets called on various Proxy events.

Parameters
_nameName of callback structure.

Function Documentation

◆ bt_mesh_proxy_connect()

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.

Parameters
net_idxNetwork Key Index
Returns
0 on success, or (negative) error code on failure.

◆ bt_mesh_proxy_disconnect()

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.

Parameters
net_idxNetwork Key Index
Returns
0 on success, or (negative) error code on failure.

◆ bt_mesh_proxy_identity_enable()

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.

Returns
0 on success, or (negative) error code on failure.