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

◆ sensor

void(* bt_mesh_sensor_cli_handlers::sensor) (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_info *sensor)

Sensor description callback.

Called when the client receives sensor descriptors, either as a result of calling bt_mesh_sensor_cli_all_get or bt_mesh_sensor_cli_desc_get, or as an unsolicited message.

The sensor description does not reference the sensor type directly, to allow discovery of sensor types unknown to the client. To get the sensor type of a known sensor, call bt_mesh_sensor_type_get.

Parameters
[in]cliSensor client receiving the message.
[in]ctxMessage context.
[in]sensorSensor information for a single sensor.