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

◆ get

int(*const bt_mesh_sensor::get) (struct bt_mesh_sensor_srv *srv, struct bt_mesh_sensor *sensor, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_sensor_value *rsp)

Getter function for the sensor value.

Parameters
[in]srvSensor server associated with sensor instance.
[in]sensorSensor instance.
[in]ctxMessage context, or NULL if the call wasn't triggered by a mesh message.
[out]rspValue response buffer. Fits the number of channels specified by the sensor type. All channels must be filled.
Returns
0 on success, or (negative) error code otherwise.