edistechlab / diy-heimautomation-buch Goto Github PK
View Code? Open in Web Editor NEWBegleitcode für das Buch
Begleitcode für das Buch
Hallo Edi
habe das ganze so übernommen wie im Video beschrieben, habe es mal compiliert aber die Fehlermeldung kommt immer wieder obwohl ich alle librarys mit der genauen Version runtergeladen habe. Kannst du mir mitteilen, was ich falsch gemacht habe? Ausserdem kann ich unter Boards die ESP32 und 8266 nicht finden. Besten Dank! LG Murat
Arduino: 1.8.13 (Mac OS X), Board: "Arduino Uno"
In file included from /Users/muratcobanoglu/Documents/Arduino/BME280_I2C_OTA_MQTT/BME280_I2C_OTA_MQTT.ino:27:0:
/Users/muratcobanoglu/Documents/Arduino/libraries/ArduinoOTA/src/ArduinoOTA.h:133:2: warning: #warning "Network library not included or not supported" [-Wcpp]
#warning "Network library not included or not supported"
^~~~~~~
BME280_I2C_OTA_MQTT:51:1: error: 'WiFiClient' does not name a type; did you mean 'DNSClient'?
WiFiClient espClient;
^~~~~~~~~~
DNSClient
BME280_I2C_OTA_MQTT:52:21: error: 'espClient' was not declared in this scope
PubSubClient client(espClient);
^~~~~~~~~
/Users/muratcobanoglu/Documents/Arduino/BME280_I2C_OTA_MQTT/BME280_I2C_OTA_MQTT.ino:52:21: note: suggested alternative: 'DNSClient'
PubSubClient client(espClient);
^~~~~~~~~
DNSClient
/Users/muratcobanoglu/Documents/Arduino/BME280_I2C_OTA_MQTT/BME280_I2C_OTA_MQTT.ino: In function 'void setup()':
BME280_I2C_OTA_MQTT:60:4: error: 'ArduinoOTA' was not declared in this scope
ArduinoOTA.setHostname(ESPHostname);
^~~~~~~~~~
/Users/muratcobanoglu/Documents/Arduino/BME280_I2C_OTA_MQTT/BME280_I2C_OTA_MQTT.ino:60:4: note: suggested alternative: 'Arduino_h'
ArduinoOTA.setHostname(ESPHostname);
^~~~~~~~~~
Arduino_h
/Users/muratcobanoglu/Documents/Arduino/BME280_I2C_OTA_MQTT/BME280_I2C_OTA_MQTT.ino: In function 'void loop()':
BME280_I2C_OTA_MQTT:77:3: error: 'ArduinoOTA' was not declared in this scope
ArduinoOTA.handle();
^~~~~~~~~~
/Users/muratcobanoglu/Documents/Arduino/BME280_I2C_OTA_MQTT/BME280_I2C_OTA_MQTT.ino:77:3: note: suggested alternative: 'Arduino_h'
ArduinoOTA.handle();
^~~~~~~~~~
Arduino_h
/Users/muratcobanoglu/Documents/Arduino/BME280_I2C_OTA_MQTT/BME280_I2C_OTA_MQTT.ino: In function 'void setup_wifi()':
BME280_I2C_OTA_MQTT:118:3: error: 'WiFi' was not declared in this scope
WiFi.begin(wifi_ssid, wifi_password);
^~~~
/Users/muratcobanoglu/Documents/Arduino/BME280_I2C_OTA_MQTT/BME280_I2C_OTA_MQTT.ino:118:3: note: suggested alternative: 'Wire'
WiFi.begin(wifi_ssid, wifi_password);
^~~~
Wire
BME280_I2C_OTA_MQTT:119:27: error: 'WL_CONNECTED' was not declared in this scope
while (WiFi.status() != WL_CONNECTED) {
^~~~~~~~~~~~
/Users/muratcobanoglu/Documents/Arduino/BME280_I2C_OTA_MQTT/BME280_I2C_OTA_MQTT.ino:119:27: note: suggested alternative: 'MQTT_CONNECTED'
while (WiFi.status() != WL_CONNECTED) {
^~~~~~~~~~~~
MQTT_CONNECTED
exit status 1
'WiFiClient' does not name a type; did you mean 'DNSClient'?
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Die Scetches Temperatur Sensoren_MQTT_OTA_V1.0.ino funktionieren mit dem NodeMCU - ESP8266 ohne Probleme, mit dem ESP32 kann nicht mit MQTT verbunden werden.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.