Moderator: igrr
Use
extern "C" {
#include "user_interface.h"
}
and you should be able to use the watchdog . Delete the ref. to <avr/wdt.h>( this is for Atmel micros only ,not the ESP8266)
Gerry
Would I just enable watchdog by putting ESP.wdtEnable(WDTO_4S) in setup for example to have watchdog reset in 5 seconds if no ESP.wdtFeed() is seen in that time?
Gerry