vintlabs / fauxmoESP

Add voice control of your ESP32 and ESP8266 devices using Amazon Alexa
MIT License
375 stars 70 forks source link

Where best to feed a watchdog? #254

Open iconnor opened 9 months ago

iconnor commented 9 months ago

I wanted to feed the watchdog but wanted to know if there is anything like a health check I can call in my main loop to see if everything is okay.

I have getDeviceId just to see if the class is still around and listing the device but maybe there is something better.

  if (fauxmo.getDeviceId("example") > -1) {
    ESP.wdtFeed();
  }