From 240652ccb99879198f519a43842bc33adcb36cde Mon Sep 17 00:00:00 2001 From: Empire Date: Tue, 20 Oct 2020 20:57:06 +0200 Subject: [PATCH] ota works (for me) --- esp32/platformio.ini | 3 --- esp32/src/main.cpp | 14 +------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/esp32/platformio.ini b/esp32/platformio.ini index 8f83108..18d1a86 100644 --- a/esp32/platformio.ini +++ b/esp32/platformio.ini @@ -13,12 +13,9 @@ platform = espressif32 board = esp32doit-devkit-v1 framework = arduino build_flags = -DPIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY -board_build.partitions = huge_app.csv ; the latest development brankitchen-lightch (convention V3.0.x) lib_deps = ArduinoJson@6.16.1 https://github.com/homieiot/homie-esp8266.git#v3.0 OneWire - -upload_port = /dev/ttyUSB0 diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index 5afe474..6519035 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -468,7 +468,6 @@ void homieLoop(){ void systemInit(){ WiFi.mode(WIFI_STA); - Serial.println("1"); Homie_setFirmware("PlantControl", FIRMWARE_VERSION); @@ -476,24 +475,15 @@ void systemInit(){ deepSleepTime.setDefaultValue(300000); /* 5 minutes in milliseconds */ deepSleepNightTime.setDefaultValue(0); wateringDeepSleep.setDefaultValue(60000); /* 1 minute in milliseconds */ - -Serial.println("2"); - waterLevelMax.setDefaultValue(1000); /* 100cm in mm */ waterLevelMin.setDefaultValue(50); /* 5cm in mm */ waterLevelWarn.setDefaultValue(500); /* 50cm in mm */ waterLevelVol.setDefaultValue(5000); /* 5l in ml */ - Serial.println("4"); Homie.setLoopFunction(homieLoop); - Serial.println("5"); Homie.setup(); - Serial.println("6"); - - Serial.println("3"); mConfigured = Homie.isConfigured(); - Serial.println("3b"); if (mConfigured) { // Advertise topics plant1.advertise("switch").setName("Pump 1") @@ -554,10 +544,8 @@ Serial.println("2"); .setDatatype("number") .setUnit("V"); sensorWater.advertise("remaining").setDatatype("number").setUnit("%"); - - // Mode 3 - stayAlive.advertise("alive").setName("Alive").setDatatype("number").settable(aliveHandler); } + stayAlive.advertise("alive").setName("Alive").setDatatype("number").settable(aliveHandler); }