Safe Sprinkler
Master/slave irrigation system (ESP-NOW + LoRaWAN)
Loading...
Searching...
No Matches
Functions
watchdog.h File Reference
#include "master/main_master.h"
#include "master/master_statechart.h"
Include dependency graph for watchdog.h:

Go to the source code of this file.

Functions

void start_watchdog (void)
 Run watchdog check over registered slaves.
 

Function Documentation

◆ start_watchdog()

void start_watchdog ( void  )

Run watchdog check over registered slaves.

Compares last_notified and moisture against thresholds; raises missing-slave or drought events and may queue alarm messages to lora_fifo. Updates the master statechart (missing_slaves, has_drought) and sets irrigation GPIO from sc.iface. Call periodically (e.g. from state machine or timer).