diff --git a/src/main.cpp b/src/main.cpp index 4a7da81..53e08ef 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,12 +18,17 @@ #include #include "Adafruit_BME680.h" +#include "XD0OTA.h" +#include "XD0MQTT.h" + static const char* TAG = "MAIN"; WiFiMulti wifiMulti; GxEPD2_BW display(GxEPD2_213_B72(/*CS=TFT_CS*/ SS, /*DC=*/ TFT_DC, /*RST=*/ TFT_RST, /*BUSY=*/ -1)); // GDEH0213B72 Adafruit_BME680 bme; // I2C (also available: hardware SPI +XD0MQTT mqtt; + void helloWorld() { const char HelloWorld[] = "Hello World!"; @@ -80,6 +85,11 @@ void setup() Serial.println("IP address: "); Serial.println(WiFi.localIP()); } + + XD0OTA ota("esp32-weatherstation"); + ota.update(); + + mqtt.begin(); } void loop()