Architecture
The system utilizes MQTT for device communication, a FastAPI server for orchestration, and WebSockets for real-time dashboard updates. Control logic is distributed between the C++ firmware (ESP32) for local resilience and the server layer for complex decision-making.
Implementation
Implementing asynchronous MQTT client logic on embedded hardware and synchronizing actuator states across distributed layers.
Outcome
A deployable IoT automation blueprint integrating embedded systems with modern web backends for reliable agricultural monitoring.
What it does
- Real-time sensor data ingestion (Temp, Humidity, Soil, Light)
- Multi-tasking ESP32 firmware with persistent MQTT state
- WebSocket-driven monitoring dashboard for sub-second latency
- Local edge fallback logic for autonomous operation during outages