Skip to content

Commit 2c60ce9

Browse files
Added note for watchdog timer compatibility
1 parent 9b12cdd commit 2c60ce9

File tree

1 file changed

+2
-2
lines changed
  • content/arduino-cloud/03.cloud-interface/00.sketches

1 file changed

+2
-2
lines changed

content/arduino-cloud/03.cloud-interface/00.sketches/sketches.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ This section highlights some important aspects of writing code with regard to th
128128

129129
### Watchdog Timer (WDT)
130130

131-
All Arduino Cloud sketches use a **Watchdog Timer (WDT)** by default. The WDT can be used to automatically recover from hardware faults or unrecoverable software errors.
131+
Arduino Cloud sketches use a **Watchdog Timer (WDT)** by default, however, not all boards support this function. The WDT can be used to automatically recover from hardware faults or unrecoverable software errors.
132132

133133
A WDT is essentially a countdown timer, whereas it starts counting from a set value, and upon reaching zero, it resets the board. To prevent it from reaching zero, we continuously call it from the `loop()`, using the `ArduinoCloud.update()` function.
134134

@@ -140,7 +140,7 @@ The WDT can however be disabled inside of the `setup()` function, by adding the
140140
ArduinoCloud.begin(ArduinoIoTPreferredConnection, false).
141141
```
142142

143-
***You can view the source code of this implementation [here](https://github.com/arduino-libraries/ArduinoIoTCloud/tree/master/src/utility/watchdog).***
143+
***You can view the source code of this implementation [here](https://github.com/arduino-libraries/ArduinoIoTCloud/tree/master/src/utility/watchdog) and you can check if your board supports this feature [here](https://github.com/arduino-libraries/ArduinoIoTCloud?tab=readme-ov-file#what).***
144144

145145
### Alternatives to Delays
146146

0 commit comments

Comments
 (0)