nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ get

void(*const bt_mesh_prop_srv::get) (struct bt_mesh_prop_srv *srv, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_prop_val *val)

Get a property value.

Note that buf can only fit a value of size CONFIG_GEN_PROP_MAXSIZE.

Note
This handler is mandatory.
Parameters
[in]srvProperty Server instance whose property to set.
[in]ctxMessage context for the message that triggered the change, or NULL if the change is not coming from a message.
[in,out]valProperty value to get. Any changes to the value will be reflected in the response message.