Hello,
I just started working with the ESP32-S2. I am getting this error message while trying to build my Arduino project.
I’m using a BME680 sensor board that works fine with any of my ESP32 development boards.
-Keith
Arduino: 1.8.13 (Windows 10), Board: “SparkFun ESP32-S2 Thing Plus, UART0, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi), QIO, 80MHz, 4MB (32Mb), 921600, None”
E:\Home Assistant Files\ESP32 ARDUINO FIRMWARE ROOM SENSORS\SB-1\sketch_april-8_SB-1\sketch_april-8_SB-1.ino: In function ‘void setup()’:
sketch_april-8_SB-1:125:8: error: ‘bme’ was not declared in this scope
if (!bme.begin(0x76))
^~~
E:\Home Assistant Files\ESP32 ARDUINO FIRMWARE ROOM SENSORS\SB-1\sketch_april-8_SB-1\sketch_april-8_SB-1.ino:125:8: note: suggested alternative: ‘time’
if (!bme.begin(0x76))
^~~
time
sketch_april-8_SB-1:132:3: error: ‘bme’ was not declared in this scope
bme.setTemperatureOversampling(BME680_OS_8X);
^~~
E:\Home Assistant Files\ESP32 ARDUINO FIRMWARE ROOM SENSORS\SB-1\sketch_april-8_SB-1\sketch_april-8_SB-1.ino:132:3: note: suggested alternative: ‘time’
bme.setTemperatureOversampling(BME680_OS_8X);
^~~
time
E:\Home Assistant Files\ESP32 ARDUINO FIRMWARE ROOM SENSORS\SB-1\sketch_april-8_SB-1\sketch_april-8_SB-1.ino: In function ‘void loop()’:
sketch_april-8_SB-1:189:13: error: ‘bme’ was not declared in this scope
if (! bme.performReading()) {
^~~
E:\Home Assistant Files\ESP32 ARDUINO FIRMWARE ROOM SENSORS\SB-1\sketch_april-8_SB-1\sketch_april-8_SB-1.ino:189:13: note: suggested alternative: ‘time’
if (! bme.performReading()) {
^~~
time
sketch_april-8_SB-1:196:21: error: ‘bme’ was not declared in this scope
temperature = bme.temperature;
^~~
E:\Home Assistant Files\ESP32 ARDUINO FIRMWARE ROOM SENSORS\SB-1\sketch_april-8_SB-1\sketch_april-8_SB-1.ino:196:21: note: suggested alternative: ‘time’
temperature = bme.temperature;
^~~
time
Used: C:\Users\Keith\Documents\Arduino\libraries\Wire
Used: C:\Users\Keith\Documents\Arduino\libraries\SPI
Multiple libraries were found for “WiFi.h”
Used: C:\Users\Keith\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
‘bme’ was not declared in this scope
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.