Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
Data Structures | |
struct | bt_mesh_blob_srv_cb |
BLOB Transfer Server model event handlers. More... | |
struct | bt_mesh_blob_srv |
BLOB Transfer Server instance. More... | |
Macros | |
#define | BT_MESH_BLOB_BLOCKS_MAX 1 |
Max number of blocks in a single transfer. | |
#define | BT_MESH_MODEL_BLOB_SRV(_srv) |
BLOB Transfer Server model composition data entry. | |
Functions | |
int | bt_mesh_blob_srv_recv (struct bt_mesh_blob_srv *srv, uint64_t id, const struct bt_mesh_blob_io *io, uint8_t ttl, uint16_t timeout_base) |
Prepare BLOB Transfer Server for an incoming transfer. | |
int | bt_mesh_blob_srv_cancel (struct bt_mesh_blob_srv *srv) |
Cancel the current BLOB transfer. | |
bool | bt_mesh_blob_srv_is_busy (const struct bt_mesh_blob_srv *srv) |
Get the current state of the BLOB Transfer Server. | |
uint8_t | bt_mesh_blob_srv_progress (const struct bt_mesh_blob_srv *srv) |
Get the current progress of the active transfer in percent. | |
#define BT_MESH_BLOB_BLOCKS_MAX 1 |
#include <zephyr/bluetooth/mesh/blob_srv.h>
Max number of blocks in a single transfer.
#define BT_MESH_MODEL_BLOB_SRV | ( | _srv | ) |
#include <zephyr/bluetooth/mesh/blob_srv.h>
BLOB Transfer Server model composition data entry.
_srv | Pointer to a Bluetooth Mesh BLOB Transfer Server model API instance. |
int bt_mesh_blob_srv_cancel | ( | struct bt_mesh_blob_srv * | srv | ) |
#include <zephyr/bluetooth/mesh/blob_srv.h>
Cancel the current BLOB transfer.
Tells the BLOB Transfer Client to drop this device from the list of Targets for the current transfer. Note that the client may continue sending the transfer to other Targets.
srv | BLOB Transfer Server instance. |
bool bt_mesh_blob_srv_is_busy | ( | const struct bt_mesh_blob_srv * | srv | ) |
#include <zephyr/bluetooth/mesh/blob_srv.h>
Get the current state of the BLOB Transfer Server.
srv | BLOB Transfer Server instance. |
uint8_t bt_mesh_blob_srv_progress | ( | const struct bt_mesh_blob_srv * | srv | ) |
#include <zephyr/bluetooth/mesh/blob_srv.h>
Get the current progress of the active transfer in percent.
srv | BLOB Transfer Server instance. |
int bt_mesh_blob_srv_recv | ( | struct bt_mesh_blob_srv * | srv, |
uint64_t | id, | ||
const struct bt_mesh_blob_io * | io, | ||
uint8_t | ttl, | ||
uint16_t | timeout_base | ||
) |
#include <zephyr/bluetooth/mesh/blob_srv.h>
Prepare BLOB Transfer Server for an incoming transfer.
Before a BLOB Transfer Server can receive a transfer, the transfer must be prepared through some application level mechanism. The BLOB Transfer Server will only accept incoming transfers with a matching BLOB ID.
srv | BLOB Transfer Server instance. |
id | BLOB ID to accept. |
io | BLOB stream to write the incoming BLOB to. |
ttl | Time to live value to use in responses to the BLOB Transfer Client. |
timeout_base | Extra time for the Client to respond in addition to the base 10 seconds, in 10-second increments. |