Skip to content

Commit

Permalink
remove MQTT disconnect, messages were not transmitted
Browse files Browse the repository at this point in the history
  • Loading branch information
Yattien committed Apr 3, 2020
1 parent 2140201 commit 01710c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ESPEInk_ESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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 ");

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 01710c6

Please sign in to comment.