Skip to content

Commit

Permalink
MQTT timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
steadramon committed Apr 30, 2023
1 parent f019d49 commit 540109a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ESPGeiger/src/Mqtt/MQTT_Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ class MQTT_Client : public PubSubClient {
bool mqttEnabled = true;

const unsigned long pingInterval = 1 * 60 * 1000;
const unsigned long reconnectionInterval = 5 * 1000;
uint16_t connectionTimeout = 5 * 60 * 1000 / reconnectionInterval;
const unsigned long reconnectionInterval = 15 * 1000;
uint16_t connectionTimeout = 10 * 60 * 1000 / reconnectionInterval;

const char* teleTopic = "%st%/tele/%cm%";
const char* statTopic = "%st%/stat/%cm%";
Expand Down

0 comments on commit 540109a

Please sign in to comment.