![]() |
nRF Connect SDK API 3.3.99
|
| void(* bt_mesh_sensor_cli_handlers::data) (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_type *sensor, const struct bt_mesh_sensor_value *value) |
Sensor data callback.
Called when the client receives sensor sample data, either as a result of calling bt_mesh_sensor_cli_get, or as an unsolicited message.
| [in] | cli | Sensor client receiving the message. |
| [in] | ctx | Message context. |
| [in] | sensor | Sensor instance. |
| [in] | value | The received sensor data value as an array of channels. The length of the array matches the sensor channel count. |