Read our data from the sensor.
Read our data from the sensor.
bme68x_get_data
int8_t
bme68x_get_data(uint8_t op_mode,
struct bme68x_data *data, uint8_t *n_data,
struct bme68x_dev *dev);
int8_t bme68x_get_data(uint8_t op_mode, struct bme68x_data *data, uint8_t *n_data, struct bme68x_dev *dev)
This API reads the pressure, temperature and humidity and gas data from the sensor, compensates the data and store it in the bme68x_data structure instance passed by the user.
- Parameters
-
| [in] | op_mode | : Expected operation mode. |
| [out] | data | : Structure instance to hold the data. |
| [out] | n_data | : Number of data instances available. |
| [in,out] | dev | : Structure instance of bme68x_dev |
- Returns
- Result of API execution status
- Return values
-