![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| [in] | cli | Sensor client receiving the message. |
| [in] | ctx | Message context. |
| [in] | sensor | Sensor information for a single sensor. |