Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6b4de87

Browse files
Merge pull request #1996 from arduino/Pedromsousalima/cloudsketccWDTnote
[MKC-1677]Added note for watchdog timer compatibility
2 parents 097d018 + 2c60ce9 commit 6b4de87

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‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ This section highlights some important aspects of writing code with regard to th
140140

141141
### Watchdog Timer (WDT)
142142

143-
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.
143+
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.
144144

145145
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.
146146

@@ -152,7 +152,7 @@ The WDT can however be disabled inside of the `setup()` function, by adding the
152152
ArduinoCloud.begin(ArduinoIoTPreferredConnection, false).
153153
```
154154

155-
***You can view the source code of this implementation [here](https://github.com/arduino-libraries/ArduinoIoTCloud/tree/master/src/utility/watchdog).***
155+
***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).***
156156

157157
### Alternatives to Delays
158158

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /