From 01710c62bfeebb0ef19c5de4cbfd3e6c099fbdf3 Mon Sep 17 00:00:00 2001 From: Yattien <36767821+Yattien@users.noreply.github.com> Date: Fri, 3 Apr 2020 06:24:33 +0200 Subject: [PATCH] remove MQTT disconnect, messages were not transmitted --- ESPEInk_ESP8266.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESPEInk_ESP8266.ino b/ESPEInk_ESP8266.ino index 0d88594..fb58246 100644 --- a/ESPEInk_ESP8266.ino +++ b/ESPEInk_ESP8266.ino @@ -298,7 +298,7 @@ void loop() { if (isUpdateAvailable) { mqttClient.publish(ctx.mqttCommandTopic, "true"); delay(100); - disconnect(); + //disconnect(); } Serial.printf("Webserver started, waiting %sfor updates\r\n", isMqttEnabled ? "" : "10s "); @@ -328,7 +328,7 @@ void loop() { if (!isDisplayUpdateRunning) { if (isTimeToSleep) { if (ctx.sleepTime > 0) { - disconnect(); + //disconnect(); Serial.printf("Going to sleep for %ld seconds.\r\n", ctx.sleepTime); ESP.deepSleep(ctx.sleepTime * 1000000); delay(100);