Wemos-D1-Mini-BME280-Weather-Station icon indicating copy to clipboard operation
Wemos-D1-Mini-BME280-Weather-Station copied to clipboard

Error compiling code

Open syrusfem opened this issue 7 years ago • 1 comments

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?

syrusfem avatar Dec 10 '17 06:12 syrusfem

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);

finitespace avatar Apr 18 '18 02:04 finitespace