Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
Model opcode handler. More...
#include <access.h>
Data Fields | |
const uint32_t | opcode |
OpCode encoded using the BT_MESH_MODEL_OP_* macros. | |
const ssize_t | len |
Message length. | |
int(*const | func )(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) |
Handler function for this opcode. | |
Model opcode handler.
int(*const bt_mesh_model_op::func) (const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, struct net_buf_simple *buf) |
Handler function for this opcode.
model | Model instance receiving the message. |
ctx | Message context for the message. |
buf | Message buffer containing the message payload, not including the opcode. |
const ssize_t bt_mesh_model_op::len |
Message length.
If the message has variable length then this value indicates minimum message length and should be positive. Handler function should verify precise length based on the contents of the message. If the message has fixed length then this value should be negative. Use BT_MESH_LEN_* macros when defining this value.
const uint32_t bt_mesh_model_op::opcode |
OpCode encoded using the BT_MESH_MODEL_OP_* macros.