nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
Sensor Client model

API for the Sensor Client. More...

Data Structures

struct  bt_mesh_sensor_cli
 
struct  bt_mesh_sensor_cadence_status
 
struct  bt_mesh_sensor_setting_status
 
struct  bt_mesh_sensor_series_entry
 
struct  bt_mesh_sensor_info
 
struct  bt_mesh_sensor_data
 
union  bt_mesh_sensor_column_key
 Sensor column indexing value. More...
 
struct  bt_mesh_sensor_cli_handlers
 

Macros

#define BT_MESH_SENSOR_CLI_INIT(_handlers)
 Initialization parameters for Sensor Client model.
 
#define BT_MESH_MODEL_SENSOR_CLI(_cli)
 Sensor Client model composition data entry.
 

Functions

int bt_mesh_sensor_cli_setting_set (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_type *sensor, const struct bt_mesh_sensor_type *setting, const struct bt_mesh_sensor_value *value, struct bt_mesh_sensor_setting_status *rsp)
 Set a setting value for a sensor.
 
int bt_mesh_sensor_cli_setting_set_unack (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_type *sensor, const struct bt_mesh_sensor_type *setting, const struct bt_mesh_sensor_value *value)
 Set a setting value for a sensor without requesting a response.
 
int bt_mesh_sensor_cli_get (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_type *sensor, struct bt_mesh_sensor_value *rsp)
 Read sensor data from a sensor instance.
 
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)
 Read a single sensor series data entry.
 
int bt_mesh_sensor_cli_series_entries_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 *range_start, const union bt_mesh_sensor_column_key *range_end, struct bt_mesh_sensor_series_entry *rsp, uint32_t *count)
 Get multiple sensor series data entries.
 
int bt_mesh_sensor_cli_desc_all_get (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_sensor_info *sensors, uint32_t *count)
 Retrieve all sensor descriptors in a sensor server.
 
int bt_mesh_sensor_cli_desc_get (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_type *sensor, struct bt_mesh_sensor_descriptor *rsp)
 Get the descriptor for the given sensor.
 
int bt_mesh_sensor_cli_cadence_get (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_type *sensor, struct bt_mesh_sensor_cadence_status *rsp)
 Get the cadence state.
 
int bt_mesh_sensor_cli_cadence_set (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_type *sensor, const struct bt_mesh_sensor_cadence_status *cadence, struct bt_mesh_sensor_cadence_status *rsp)
 Set the cadence state for the given sensor.
 
int bt_mesh_sensor_cli_cadence_set_unack (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_type *sensor, const struct bt_mesh_sensor_cadence_status *cadence)
 Set the cadence state for the given sensor without requesting a response.
 
int bt_mesh_sensor_cli_settings_get (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_type *sensor, uint16_t *ids, uint32_t *count)
 Get the list of settings for the given sensor.
 
int bt_mesh_sensor_cli_setting_get (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, const struct bt_mesh_sensor_type *sensor, const struct bt_mesh_sensor_type *setting, struct bt_mesh_sensor_setting_status *rsp)
 Get a setting value for a sensor.
 
int bt_mesh_sensor_cli_all_get (struct bt_mesh_sensor_cli *cli, struct bt_mesh_msg_ctx *ctx, struct bt_mesh_sensor_data *sensors, uint32_t *count)
 Read sensor data from all sensors on a server.
 

Detailed Description

API for the Sensor Client.