How kmishra987/smart-water-level-awd-iot-system works
This ESP32 water-level monitor reads and validates a sensor, derives water depth and AWD threshold status, signals status locally, serves a web view, and reports measurements to ThingSpeak. It also counts threshold events in persistent preferences and buffers measurements for later upload when connectivity returns. These responsibilities are implemented in one source file; the graph separates them by role. The README is empty, and the sampled source is partial, so links are limited to relationships visible in the excerpt.
Main entry points: main.cpp Main loop
Components 15
Monitoring
- Main loop
src/main.cpp - Sensor acquisition
src/main.cpp - Measurement logic
src/main.cpp - AWD status
src/main.cpp
Local interfaces
- LED indicators
src/main.cpp - OLED display
src/main.cpp - Local web server
src/main.cpp - Status page
src/main.cpp
Connectivity
- Wi-Fi network
- Cloud uploader
src/main.cpp
State
- Offline buffer
src/main.cpp - Event preferences
src/main.cpp
Other components
- Water sensor
- Browser user
- ThingSpeak
Connections 16
- Main loop → Sensor acquisition: reads
src/main.cpp - Water sensor → Sensor acquisition: provides readings
src/main.cpp - Main loop → Measurement logic: calculates
src/main.cpp - Main loop → AWD status: updates
src/main.cpp - Main loop → LED indicators: drives
src/main.cpp - Main loop → OLED display: renders
src/main.cpp - Main loop → Local web server: handles requests
src/main.cpp - Local web server → Status page: sends page
src/main.cpp - Status page → Browser user: serves status
src/main.cpp - Main loop → Event preferences: loads and saves
src/main.cpp - Main loop → Offline buffer: buffers measurements
src/main.cpp - Main loop → Cloud uploader: schedules uploads
src/main.cpp - Cloud uploader → ThingSpeak: sends measurements
src/main.cpp - Cloud uploader → Wi-Fi network: uses connection
src/main.cpp - Main loop → Wi-Fi network: checks connectivity
src/main.cpp - Offline buffer → Cloud uploader: replays buffered data
src/main.cpp