05-06-2020 04:09 PM
Hello,
For the "BME680 latest sensor API implementation for reference" what is the relationship between : bme680_field_data.temperature and bme680_dev.amb_temp please?
/100?
bme680_field_data->temperature = calc_temperature(adc_temp, dev);
but nothing how to set bme680_dev.amb_temp ????
Best regards
Mich
Solved! Go to Solution.
05-06-2020 04:52 PM
bme680_dev.amb_temp is an input for the gas sensor configuration. It is possible to keep a hard-coded, for example at 25.
bme680_field_data.temperature is the output of BME680's temperature sensor measurement. To support some decimal points, the resolution of the integer formula output is 100LSB/°C, while the floating-point formula outputs directly in °C. It is recommend to use the floating-point implementation if your platform supports it.