Zephyr Project API  3.4.0
A Scalable Open Source RTOS
Bluetooth Mesh On-Demand Private GATT Proxy Client

Data Structures

struct  bt_mesh_od_priv_proxy_cli
 

Macros

#define BT_MESH_MODEL_OD_PRIV_PROXY_CLI(cli_data)
 On-Demand Private Proxy Client model composition data entry. More...
 

Functions

int bt_mesh_od_priv_proxy_cli_get (struct bt_mesh_msg_ctx *ctx, uint8_t *val_rsp)
 Get the target's On-Demand Private GATT Proxy state. More...
 
int bt_mesh_od_priv_proxy_cli_set (struct bt_mesh_msg_ctx *ctx, uint8_t val, uint8_t *val_rsp)
 Set the target's On-Demand Private GATT Proxy state. More...
 
void bt_mesh_od_priv_proxy_cli_timeout_set (int32_t timeout)
 Set the transmission timeout value. More...
 

Detailed Description

Macro Definition Documentation

◆ BT_MESH_MODEL_OD_PRIV_PROXY_CLI

#define BT_MESH_MODEL_OD_PRIV_PROXY_CLI (   cli_data)

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

Value:
_bt_mesh_od_priv_proxy_cli_op, NULL, cli_data, \
&_bt_mesh_od_priv_proxy_cli_cb)
#define BT_MESH_MODEL_CB(_id, _op, _pub, _user_data, _cb)
Composition data SIG model entry with callback functions.
Definition: access.h:338
#define BT_MESH_MODEL_ID_ON_DEMAND_PROXY_CLI
Definition: access.h:145

On-Demand Private Proxy Client model composition data entry.

Function Documentation

◆ bt_mesh_od_priv_proxy_cli_get()

int bt_mesh_od_priv_proxy_cli_get ( struct bt_mesh_msg_ctx ctx,
uint8_t val_rsp 
)

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

Get the target's On-Demand Private GATT Proxy state.

This method can be used asynchronously by setting val_rsp as NULL. This way the method will not wait for response and will return immediately after sending the command.

To process the response arguments of an async method, register the od_status callback in bt_mesh_od_priv_proxy_cli struct.

Parameters
ctxMessage context for the message.
val_rspResponse buffer for On-Demand Private GATT Proxy value.
Returns
0 on success, or (negative) error code otherwise.

◆ bt_mesh_od_priv_proxy_cli_set()

int bt_mesh_od_priv_proxy_cli_set ( struct bt_mesh_msg_ctx ctx,
uint8_t  val,
uint8_t val_rsp 
)

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

Set the target's On-Demand Private GATT Proxy state.

This method can be used asynchronously by setting val_rsp as NULL. This way the method will not wait for response and will return immediately after sending the command.

To process the response arguments of an async method, register the od_status callback in bt_mesh_od_priv_proxy_cli struct.

Parameters
ctxMessage context for the message.
valOn-Demand Private GATT Proxy state to be set
val_rspResponse buffer for On-Demand Private GATT Proxy value.
Returns
0 on success, or (negative) error code otherwise.

◆ bt_mesh_od_priv_proxy_cli_timeout_set()

void bt_mesh_od_priv_proxy_cli_timeout_set ( int32_t  timeout)

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

Set the transmission timeout value.

Parameters
timeoutThe new transmission timeout in milliseconds.