loop() {
send();
delay(10000);
}
but as soon as I try to replace that with a Ticker the module reboots after a few seconds:
Ticker sendTicker;
setup() {
...
sendTicker.attach(10.0, send);
}
loop() {
}
and the reason shown for the reboot is wdt_reset. Neither the Ticker nor the MQTT client libraries have an issue with the watchdog separately.
The Ticker approach appears more elegant as the loop could still be used for different purposes...