Author Topic: Are there any hardware or software watchdogs available?  (Read 2590 times)

Nevyn

  • Newbie
  • *
  • Posts: 25
Are there any hardware or software watchdogs available?
« on: September 04, 2016, 09:38:42 pm »
Does the library have any watchdog capability built in?

Regards,
Mark

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Are there any hardware or software watchdogs available?
« Reply #1 on: September 05, 2016, 01:11:52 am »
I was looking at this issue on the ESP8266 Arduino github pages a few weeks ago, and it looks like there is a software and a hardware watchdog on the ESP8266 chip.

From one of the other users comments:
Quote
the software WDT is implemented inside the SDK from espressif, and is using a Timer.
the Hardware WDT is implemented in the silicon of the ESP chip, and is running independent form every software.

They apparently enabled WDT APIs back in May 2015, so there is no reason they shouldn't be available in the Oak port of their code... but I haven't tried it myself! ;)

Code: [Select]
ESP.wdtEnable(timeout), ESP.wdtDisable(), ESP.wdtFeed()

Nevyn

  • Newbie
  • *
  • Posts: 25
Re: Are there any hardware or software watchdogs available?
« Reply #2 on: September 05, 2016, 01:59:29 am »
That is excellent news and something for me have a look at later today.  I'll let you know how it goes.

Thanks,
Mark