We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 679118c commit 5ee73f7Copy full SHA for 5ee73f7
src/ArduinoIoTCloudTCP.cpp
@@ -320,6 +320,16 @@ void ArduinoIoTCloudTCP::update()
320
}
321
_state = next_state;
322
323
+ /* This watchdog feed is actually needed only by the RP2040 CONNECT cause its
324
+ * maximum watchdog window is 8388ms; despite this we feed it for all
325
+ * supported ARCH to keep code aligned.
326
+ */
327
+#ifdef ARDUINO_ARCH_SAMD
328
+ samd_watchdog_reset();
329
+#elif defined(ARDUINO_ARCH_MBED)
330
+ mbed_watchdog_reset();
331
+#endif
332
+
333
/* Check for new data from the MQTT client. */
334
if (_mqttClient.connected())
335
_mqttClient.poll();
0 commit comments