ESP32 Web Server

Got this error :slight_smile:

I updated all libs, uninstalled and reinstalled BME280 lib. I use C so C++
a bit of a challenge but looks like call to BME280 object creation does not
seem right to me, eg. the parameters required, as show in 2'ond group error
reporting.
ESP32_Web_Server.ino (3.5 KB)

Arduino 2.3.2, generic ESP32 dev board.

Try just adafruit_BME280 ; (default I2C pins) or read the tutorial at Arduino Test | Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout | Adafruit Learning System .
Incidentally, try where possible to post text instead of screen shots.

You're not using the lib that the code was coded with..
But really, I'm thinking your better off, as you using a newer lib..

need to change a few lines then it should work..

//Adafruit_BME280 bme( I2C_SDA, I2C_SCL);
Adafruit_BME280 bme; //I2C

void initSensor()
{
//  bool status = bme.begin(BME280_ADDRESS);
  bool status = bme.begin();

good luck.. ~q

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.