Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Data Structures | |
struct | bt_mesh_od_priv_proxy_cli |
On-Demand Private Proxy Client Model Context. More... | |
Macros | |
#define | BT_MESH_MODEL_OD_PRIV_PROXY_CLI(cli_data) |
On-Demand Private Proxy Client model composition data entry. | |
Functions | |
int | bt_mesh_od_priv_proxy_cli_get (uint16_t net_idx, uint16_t addr, uint8_t *val_rsp) |
Get the target's On-Demand Private GATT Proxy state. | |
int | bt_mesh_od_priv_proxy_cli_set (uint16_t net_idx, uint16_t addr, uint8_t val, uint8_t *val_rsp) |
Set the target's On-Demand Private GATT Proxy state. | |
void | bt_mesh_od_priv_proxy_cli_timeout_set (int32_t timeout) |
Set the transmission timeout value. | |
#define BT_MESH_MODEL_OD_PRIV_PROXY_CLI | ( | cli_data | ) |
#include <include/zephyr/bluetooth/mesh/od_priv_proxy_cli.h>
On-Demand Private Proxy Client model composition data entry.
#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.
net_idx | Network index to encrypt with. |
addr | Target node address. |
val_rsp | Response buffer for On-Demand Private GATT Proxy value. |
int bt_mesh_od_priv_proxy_cli_set | ( | uint16_t | net_idx, |
uint16_t | addr, | ||
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.
net_idx | Network index to encrypt with. |
addr | Target node address. |
val | On-Demand Private GATT Proxy state to be set |
val_rsp | Response buffer for On-Demand Private GATT Proxy value. |
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.
timeout | The new transmission timeout in milliseconds. |