3 #define MQTT_WATCHDOG_ID 1 4 #define MQTT_WATCHDOG_TIMEOUT 120 // restart wifi after 2 minutes without being able to send mqtt 6 #define NETWORK_RESTART_DELAY 6000 // wait 6 seconds between calling wifi_station_disconnect() and wifi_station_connect() ICACHE_FLASH_ATTR void reset_watchdog(uint32_t id)
ICACHE_FLASH_ATTR void start_watchdog()
#define ICACHE_FLASH_ATTR
ICACHE_FLASH_ATTR bool add_watchdog(uint32_t id, watchdog_type_t type, uint32_t timeout)
ICACHE_FLASH_ATTR void init_watchdog()
ICACHE_FLASH_ATTR bool remove_watchdog(uint32_t id)
ICACHE_FLASH_ATTR void stop_watchdog()