The above diagram shows the data flow for a single sensor node. The microcontroller and sensor collect environmental readings and send them as JSON over HTTP to the backend API every 60 seconds. The backend broadcasts each reading in real time over a WebSocket connection and writes a payload to long-term storage once per hour. The web dashboard consumes both streams: live data on the Feeds page and persistent data on the Trends page.
protocol: WiFiClientSecure
{
ssid: "MyNetwork",
ipAssigned: "192.168.0.105"
}The ESP32 connects to Wi-Fi using WiFiClientSecure. Once it receives an IP it stays online and sends readings over HTTPS.