Wemos-D1-Mini-BME280-Weather-Station
Wemos-D1-Mini-BME280-Weather-Station copied to clipboard
Error compiling code
Compiling the code in Arduino IDE result in the following error:
" no matching function for call to 'BME280::ReadData(float&, float&, float&, bool, int)'"
I had downloaded the last BME280 libraries and havent changed the code, what could be the problem?
You are using a newer version of the BME280 library and the prototype for the read function has changed.
The read function currently takes enumerations to the units:
BME280::TempUnit tempUnit(BME280::TempUnit_Celsius);
BME280::PresUnit presUnit(BME280::PresUnit_Pa);
bme.read(pres, temp, hum, tempUnit, presUnit);