![]() |
nRF Connect SDK API 3.3.99
|
| int bt_mesh_sensor_cli_series_entry_get | ( | struct bt_mesh_sensor_cli * | cli, |
| struct bt_mesh_msg_ctx * | ctx, | ||
| const struct bt_mesh_sensor_type * | sensor, | ||
| const union bt_mesh_sensor_column_key * | column, | ||
| struct bt_mesh_sensor_series_entry * | rsp ) |
#include <include/bluetooth/mesh/sensor_cli.h>
Read a single sensor series data entry.
This call is blocking if the rsp buffer is non-NULL. Otherwise, this function will return, and the response will be passed to the bt_mesh_sensor_cli_handlers::series_entry callback as a list of sensor descriptors.
| [in] | cli | Sensor client instance. |
| [in] | ctx | Message context parameters, or NULL to use the configured publish parameters. |
| [in] | sensor | Sensor instance present on the targeted sensor server. |
| [in] | column | Column to read. For sensor with three channels, the sensor_value field must match the start value of a series column on the sensor. For sensors with only one or two channels, the index field is used as the index of the column to get. |
| [out] | rsp | Response value buffer, or NULL to keep from blocking. Must be able to fit all channels described by the sensor type. |
| 0 | Successfully received the sensor data. |
| -ENODEV | The sensor server doesn't have the given sensor. |
| -ENOENT | The sensor doesn't have the given column. |
| -EADDRNOTAVAIL | A message context was not provided and publishing is not configured. |
| -EAGAIN | The device has not been provisioned. |
| -ETIMEDOUT | The request timed out without a response. |