Send Data to the Cloud (Workers/ThingsBoard)
REST/MQTT ingestion patterns.

REST/MQTT ingestion patterns.

Store config as JSON in FS.

Use non-blocking timers to read sensor every minute.

Design MQTT topics, choose QoS, use LWT.

Common pitfalls and fixes.

Write tests and run `pio test`.

Use task watchdog and avoid lockups.

Push sensor data to browser via WebSocket.

Install VS Code+PlatformIO or Arduino IDE 2.x with ESP32 board support.

What ESP32 is, how it differs from ESP8266, and which board to start with.