From e044850b907b6d2915522b3b12ba5e74b51c0a58 Mon Sep 17 00:00:00 2001 From: Holger Fleischmann Date: Fri, 9 Apr 2021 12:00:22 +0200 Subject: [PATCH] Set WiFi persistent false to fix connect error #4 --- src/ingest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ingest.cpp b/src/ingest.cpp index 0e40d72..e83030f 100644 --- a/src/ingest.cpp +++ b/src/ingest.cpp @@ -14,6 +14,8 @@ MQTTClient mqttClient; bool connectWiFi() { + WiFi.persistent(false); + uint16_t retries = 10; while (WiFi.status() != WL_CONNECTED && (retries--) > 0) {