NimBLE-Arduino 2.1.2
|
Bluetooth Mesh Message APIs. More...
Go to the source code of this file.
Classes | |
struct | bt_mesh_msg_ctx |
struct | bt_mesh_msg_ack_ctx |
Macros | |
#define | BT_MESH_MIC_SHORT 4 |
#define | BT_MESH_MIC_LONG 8 |
#define | BT_MESH_MODEL_OP_LEN(_op) ((_op) <= 0xff ? 1 : (_op) <= 0xffff ? 2 : 3) |
Helper to determine the length of an opcode. | |
#define | BT_MESH_MODEL_BUF_LEN(_op, _payload_len) (BT_MESH_MODEL_OP_LEN(_op) + (_payload_len) + BT_MESH_MIC_SHORT) |
Helper for model message buffer length. | |
#define | BT_MESH_MODEL_BUF_LEN_LONG_MIC(_op, _payload_len) (BT_MESH_MODEL_OP_LEN(_op) + (_payload_len) + BT_MESH_MIC_LONG) |
Helper for model message buffer length. | |
Functions | |
void | bt_mesh_model_msg_init (struct os_mbuf *msg, uint32_t opcode) |
Initialize a model message. | |
void | bt_mesh_msg_ack_ctx_clear (struct bt_mesh_msg_ack_ctx *ack) |
Clear parameters of an acknowledged message context. | |
int | bt_mesh_msg_ack_ctx_prepare (struct bt_mesh_msg_ack_ctx *ack, uint32_t op, uint16_t dst, void *user_data) |
Prepare an acknowledged message context for the incoming message to wait. | |
int | bt_mesh_msg_ack_ctx_wait (struct bt_mesh_msg_ack_ctx *ack, int32_t timeout) |
Wait for a message acknowledge. | |
bool | bt_mesh_msg_ack_ctx_match (const struct bt_mesh_msg_ack_ctx *ack, uint32_t op, uint16_t addr, void **user_data) |
Check if an opcode and address of a message matches the expected one. | |
Bluetooth Mesh Message APIs.