ESP32 with MicroPython
You need: an ESP32 flashed with a recent MicroPython firmware (esptool + the official .bin), and Thonny or mpremote.
- Download
main.pyfrom your device page in the portal. - Set
WIFI_SSIDandWIFI_PASSWORD. - Copy the file to the board (
mpremote cp main.py :main.py) and reset it. The REPL printsWiFi ok,MQTT okand one reading every 10 seconds. - Open My dashboard.
umqtt.simple ships with the official firmware. The starter connects with ssl=True on port 8883; if your firmware is very old and lacks TLS, ask your instructor — plain MQTT is not exposed on the public platform.