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

◆ data

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.

Parameters
[in]cliSensor client receiving the message.
[in]ctxMessage context.
[in]sensorSensor instance.
[in]valueThe received sensor data value as an array of channels. The length of the array matches the sensor channel count.