Improve wifi connection management (#471)

-avoid issues with WIFI automatic reconnection on ESP32
-avoid reset of ESP32 when wifi is disconnected
-enable to erase the wifi/mqtt settings if; the mqtt broker wasn't connected once or if the TRIGGER_PIN is pushed for a long time >10s
This commit is contained in:
Florian authored and GitHub committed 2019-10-19 21:59:46 +02:00
1 parent d7deb682e7
commit d196f387ae
4 files changed
+198 -147

No files matched your search

+2 -1
View File
@@ -89,7 +89,7 @@ monitor_speed = 115200
[com]
esp8266_platform = espressif8266@1.8.0
esp32_platform = espressif32@1.9.0
esp32_platform = espressif32@1.11.0
atmelavr_platform = atmelavr@1.13.0
[com-esp]
@@ -102,6 +102,7 @@ build_flags =
'-DsimpleReceiving=true'
'-DZmqttDiscovery="HADiscovery"'
'-DTRACE=1'
;'-DCORE_DEBUG_LEVEL=4'
[com-arduino]
lib_deps =