Menu

Reach your ESP32’s web page from anywhere
📰

Reach your ESP32’s web page from anywhere

Adafruit Industries – Makers, hackers, artists, designers and engineers!·Anne Barela·21 days ago
#8HW39CK6
#adafruit#component#hackster#esp32#port
Reading 0:00
15s threshold

Pinscope has posted a tutorial on hackster.io that makes an ESP32’s own web page reachable from outside the local network, without a port forward or a VPN. The device opens one outbound connection and gets an HTTPS address, live logs, charted metrics, decoded crash reports and over the air firmware updates.

Setup is one ESP-IDF component pulled from the ESP Component Registry, a project key pasted into menuconfig, and two lines in main.c. The call runs in its own task and does not block the application. Every ESP_LOG line is streamed and stored. Upload the .elf along with the .bin and crash addresses are decoded to function, file and line.

The memory story is the interesting part. Instead of TLS, the device uses the Noise protocol NK pattern with X25519 and ChaCha20-Poly1305 over plain TCP on port 443. The server’s public key is compiled in, so there is no certificate chain to parse. Measured on an ESP32-S2: 9,584 bytes of RAM while connected and 18 KB of flash.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.