You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-07-29 02:02:00 +03:00
Update default keepalive to 5 minutes, add reset on ping fail to CC3k sketch.
This commit is contained in:
@ -129,8 +129,10 @@ void loop() {
|
||||
// Try to ping the MQTT server
|
||||
/*
|
||||
if (! mqtt.ping(3) ) {
|
||||
// MQTT pings failed, lets reconnect
|
||||
Serial.println("Ping fail!");
|
||||
// MQTT pings failed, let's reconnect by forcing a watchdog reset.
|
||||
Serial.println("Ping fail! Resetting...");
|
||||
Watchdog.enable(8000);
|
||||
delay(10000);
|
||||
}
|
||||
*/
|
||||
|
||||
|
Reference in New Issue
Block a user