MeterLogger
watchdog.h
Go to the documentation of this file.
1 #define WATCHDOG_MAX 1
2 
3 #define MQTT_WATCHDOG_ID 1
4 #define MQTT_WATCHDOG_TIMEOUT 120 // restart wifi after 2 minutes without being able to send mqtt
5 
6 #define NETWORK_RESTART_DELAY 6000 // wait 6 seconds between calling wifi_station_disconnect() and wifi_station_connect()
7 
8 typedef enum {
14 
18 ICACHE_FLASH_ATTR bool add_watchdog(uint32_t id, watchdog_type_t type, uint32_t timeout);
19 ICACHE_FLASH_ATTR bool remove_watchdog(uint32_t id);
20 ICACHE_FLASH_ATTR void reset_watchdog(uint32_t id);
ICACHE_FLASH_ATTR void reset_watchdog(uint32_t id)
Definition: watchdog.c:194
ICACHE_FLASH_ATTR void start_watchdog()
Definition: watchdog.c:130
watchdog_type_t
Definition: watchdog.h:8
#define ICACHE_FLASH_ATTR
Definition: c_types.h:99
ICACHE_FLASH_ATTR bool add_watchdog(uint32_t id, watchdog_type_t type, uint32_t timeout)
Definition: watchdog.c:155
ICACHE_FLASH_ATTR void init_watchdog()
Definition: watchdog.c:125
ICACHE_FLASH_ATTR bool remove_watchdog(uint32_t id)
Definition: watchdog.c:175
ICACHE_FLASH_ATTR void stop_watchdog()
Definition: watchdog.c:148