Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Data Structures | |
struct | bt_mesh_large_comp_data_rsp |
Large Composition Data response. More... | |
struct | bt_mesh_large_comp_data_cli_cb |
Large Composition Data Status messages callbacks. More... | |
struct | bt_mesh_large_comp_data_cli |
Large Composition Data Client model context. More... | |
Macros | |
#define | BT_MESH_MODEL_LARGE_COMP_DATA_CLI(cli_data) |
Large Composition Data Client model Composition Data entry. | |
Functions | |
int | bt_mesh_large_comp_data_get (uint16_t net_idx, uint16_t addr, uint8_t page, size_t offset, struct bt_mesh_large_comp_data_rsp *rsp) |
Send Large Composition Data Get message. | |
int | bt_mesh_models_metadata_get (uint16_t net_idx, uint16_t addr, uint8_t page, size_t offset, struct bt_mesh_large_comp_data_rsp *rsp) |
Send Models Metadata Get message. | |
#define BT_MESH_MODEL_LARGE_COMP_DATA_CLI | ( | cli_data | ) |
#include <zephyr/bluetooth/mesh/large_comp_data_cli.h>
Large Composition Data Client model Composition Data entry.
cli_data | Pointer to a Large Composition Data Client model instance. |
int bt_mesh_large_comp_data_get | ( | uint16_t | net_idx, |
uint16_t | addr, | ||
uint8_t | page, | ||
size_t | offset, | ||
struct bt_mesh_large_comp_data_rsp * | rsp ) |
#include <zephyr/bluetooth/mesh/large_comp_data_cli.h>
Send Large Composition Data Get message.
This API is used to read a portion of a Composition Data Page.
This API can be used asynchronously by setting rsp
as NULL. This way, the method will not wait for a response and will return immediately after sending the command.
When rsp
is set, the user is responsible for providing a buffer for the Composition Data in bt_mesh_large_comp_data_rsp::data. If a buffer is not provided, the metadata won't be copied.
net_idx | Network index to encrypt with. |
addr | Target node element address. |
page | Composition Data Page to read. |
offset | Offset within the Composition Data Page. |
rsp | Pointer to a struct storing the received response from the server, or NULL to not wait for a response. |
int bt_mesh_models_metadata_get | ( | uint16_t | net_idx, |
uint16_t | addr, | ||
uint8_t | page, | ||
size_t | offset, | ||
struct bt_mesh_large_comp_data_rsp * | rsp ) |
#include <zephyr/bluetooth/mesh/large_comp_data_cli.h>
Send Models Metadata Get message.
This API is used to read a portion of a Models Metadata Page.
This API can be used asynchronously by setting rsp
as NULL. This way, the method will not wait for a response and will return immediately after sending the command.
When rsp
is set, a user is responsible for providing a buffer for metadata in bt_mesh_large_comp_data_rsp::data. If a buffer is not provided, the metadata won't be copied.
net_idx | Network index to encrypt with. |
addr | Target node element address. |
page | Models Metadata Page to read. |
offset | Offset within the Models Metadata Page. |
rsp | Pointer to a struct storing the received response from the server, or NULL to not wait for a response. |