Habe das Problem mit den Libarys gefixt. Jetzt kommt allerdings in Z. 136
Wire.begin(25, 26, 100000); //sda, scl, freq=100kHz
diese Fehlermeldung
call of overloaded 'begin(int, int, int)' is ambiguous
C:\Users\...\Desktop\180468-11\esp32weatherstation\esp32weatherstation.ino: In function 'void setup()':
esp32weatherstation:136:28: error: call of overloaded 'begin(int, int, int)' is ambiguous
Wire.begin(25, 26, 100000); //sda, scl, freq=100kHz
^
In file included from C:\Users\...\Documents\Arduino\libraries\Adafruit_BusIO/Adafruit_I2CDevice.h:5,
from C:\Users\...\Documents\Arduino\libraries\Adafruit_BME280_Library/Adafruit_BME280.h:26,
from C:\Users\...\Desktop\180468-11\esp32weatherstation\esp32weatherstation.ino:8:
C:\Users\...\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\Wire\src/Wire.h:79:10: note: candidate: 'bool TwoWire::begin(int, int, uint32_t)'
bool begin(int sda=-1, int scl=-1, uint32_t frequency=0); // returns true, if successful init of i2c bus
^~~~~
C:\Users\...\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\Wire\src/Wire.h:80:10: note: candidate: 'bool TwoWire::begin(uint8_t, int, int, uint32_t)'
bool begin(uint8_t slaveAddr, int sda=-1, int scl=-1, uint32_t frequency=0);
^~~~~
C:\Users\...\Desktop\180468-11\esp32weatherstation\network.ino: In function 'void setWiFiSettings()':
network:31:3: error: 'pass' was not declared in this scope
pass = server->arg("pass");
^~~~
C:\Users\...\Desktop\180468-11\esp32weatherstation\network.ino:31:3: note: suggested alternative: 'pause'
pass = server->arg("pass");
^~~~
pause
C:\Users\...\Desktop\180468-11\esp32weatherstation\network.ino: In function 'bool connectWiFi()':
network:219:68: error: 'pass' was not declared in this scope
Serial.println("Attempting to connect to " + ssid + ", pass: " + pass);
^~~~
C:\Users\...\Desktop\180468-11\esp32weatherstation\network.ino:219:68: note: suggested alternative: 'pause'
Serial.println("Attempting to connect to " + ssid + ", pass: " + pass);
^~~~
pause
C:\Users\...\Desktop\180468-11\esp32weatherstation\serialHandler.ino: In function 'void handleSerial()':
serialHandler:45:9: error: 'pass' was not declared in this scope
pass = serialIn.substring(serialIn.indexOf(",") + 1, serialIn.indexOf("\n"));
^~~~
C:\Users\...\Desktop\180468-11\esp32weatherstation\serialHandler.ino:45:9: note: suggested alternative: 'pause'
pass = serialIn.substring(serialIn.indexOf(",") + 1, serialIn.indexOf("\n"));
^~~~
pause
serialHandler:48:68: error: 'pass' was not declared in this scope
Serial.println("WiFi settings: SSID: " + ssid + ", pass: " + pass);
^~~~
C:\Users\...\Desktop\180468-11\esp32weatherstation\serialHandler.ino:48:68: note: suggested alternative: 'pause'
Serial.println("WiFi settings: SSID: " + ssid + ", pass: " + pass);
^~~~
pause
C:\Users\...\Desktop\180468-11\esp32weatherstation\storePrefs.ino: In function 'void loadNetworkCredentials()':
storePrefs:7:3: error: 'pass' was not declared in this scope
pass = pref.getString("pass");
^~~~
C:\Users\...\Desktop\180468-11\esp32weatherstation\storePrefs.ino:7:3: note: suggested alternative: 'pause'
pass = pref.getString("pass");
^~~~
pause
C:\Users\...\Desktop\180468-11\esp32weatherstation\storePrefs.ino: In function 'void storeNetworkCredentials()':
storePrefs:14:26: error: 'pass' was not declared in this scope
pref.putString("pass", pass);
^~~~
C:\Users\...\Desktop\180468-11\esp32weatherstation\storePrefs.ino:14:26: note: suggested alternative: 'pause'
pref.putString("pass", pass);
^~~~
pause
Mehrere Bibliotheken wurden für "WiFi.h" gefunden
Benutzt: C:\Users\...\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi
Nicht benutzt: C:\Program Files (x86)\Arduino\libraries\WiFi
Mehrere Bibliotheken wurden für "Adafruit_BME280.h" gefunden
Benutzt: C:\Users\...\Documents\Arduino\libraries\Adafruit_BME280_Library
Nicht benutzt: C:\Users\...\Documents\Arduino\libraries\Adafruit_BME280_Library-master
exit status 1
call of overloaded 'begin(int, int, int)' is ambiguous