From 2ac0412919011ac19caf37d4703b25118a682371 Mon Sep 17 00:00:00 2001 From: Torsten Stauder Date: Thu, 24 Dec 2020 00:00:29 +0100 Subject: [PATCH] Increased MQTT-retry-interval per default --- src/settings.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/settings.h b/src/settings.h index e511e57..e2d22fd 100644 --- a/src/settings.h +++ b/src/settings.h @@ -99,9 +99,9 @@ float voltageIndicatorHigh = 4.2; // Upper range for Neopixel- // (optional) Topics for MQTT #ifdef MQTT_ENABLE - uint16_t mqttRetryInterval = 15; // Try to reconnect to MQTT-server every (n) seconds if connection is broken - uint8_t mqttMaxRetriesPerInterval = 1; // Number of retries per time-interval (mqttRetryInterval). mqttRetryInterval 15 / mqttMaxRetriesPerInterval 1 => once every 15s - #define DEVICE_HOSTNAME "ESP32-Tonuino" // Name that that is used for MQTT + uint16_t mqttRetryInterval = 60; // Try to reconnect to MQTT-server every (n) seconds if connection is broken + uint8_t mqttMaxRetriesPerInterval = 1; // Number of retries per time-interval (mqttRetryInterval). mqttRetryInterval 60 / mqttMaxRetriesPerInterval 1 => once every 60s + #define DEVICE_HOSTNAME "ESP32-Tonuino" // Name that is used for MQTT static const char topicSleepCmnd[] PROGMEM = "Cmnd/Tonuino/Sleep"; static const char topicSleepState[] PROGMEM = "State/Tonuino/Sleep"; static const char topicRfidCmnd[] PROGMEM = "Cmnd/Tonuino/Rfid";