Skip to content

Commit 3ad1a3b

Browse files
authored
Explain watchdog behaviour in README. (#247)
1 parent d0cf80d commit 3ad1a3b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ void onLedChange() {
6666
```
6767

6868
### FAQ
69-
* Device can not subscribe to `THING_ID`
69+
#### Watchdog
70+
This [1.0.0](https://github.com/arduino-libraries/ArduinoIoTCloud/releases/tag/1.0.0) release of this library adds watchdog functionality to all ATSAMD21G18 based cloud connected boards. A watchdog is simply an electronic timer counting down from a preset start value which, upon reaching zero, triggers a reset of the microcontroller. It can be used to automatically recover from temporary hardware faults or unrecoverable software errors. In order to avoid the watchdog from reaching zero the countdown timer needs to be regularly re-set to its start value. This is happening within `ArduinoIoTCloud.update()` which is periodically called at the start of the `loop()` function. Although the watchdog is automatically enabled it can be disabled by setting the second parameter of `ArduinoIoTCloud.begin(...)` to `false`:
71+
```C++
72+
ArduinoIoTCloud.begin(ArduinoIoTPreferredConnection, false).
73+
```
74+
75+
#### Device can not subscribe to `THING_ID`
7076
```
7177
ArduinoIoTCloudTCP::handle_SubscribeMqttTopics could not subscribe to /a/t/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/e/i
7278
```

0 commit comments

Comments
 (0)