-
Notifications
You must be signed in to change notification settings - Fork 0
Example ESP WiFi Control
Nick Tracy edited this page Jul 18, 2026
·
3 revisions
Goal: Run a dual dashboard on ESP32 or ESP8266 — the same menus on USB serial and on a TCP terminal (port 23).
- Soft-AP password defaults to a simple value in the sketch (
AP_PASS) — change it before real use. - Wi‑Fi passwords you type in the UI are stored in EEPROM in plaintext. Fine for experiments; not for production secrets.
- Install ESP32 or ESP8266 board support in the Arduino IDE.
- Open ESPWiFiControlExample.
- Upload.
- USB serial is 115200 baud (not 9600).
- Optionally connect with
telnet <ip> 23after the board has an IP (STA or soft-AP).
The sketch waits only a couple of seconds for USB serial, then continues even if no monitor is open (handy for headless ESP boards).
- Switch Wi‑Fi mode (STA / AP / AP+STA)
- Scan networks and pick an SSID
- Edit the STA passkey
- Connect / disconnect STA
- Toggle the soft access point
- Watch IP addresses and signal bars
| Input | Action |
|---|---|
| Arrow keys, W/S, or J/K | Move selection |
| Enter or Space | Activate |
| Mouse click on a menu row | Activate (when the terminal supports mouse reports) |
- Widen the terminal (~80 columns) for the full dashboard.
- If the USB view and telnet view both connect, both stay in sync.
- After changing network mode, reconnect telnet if the session drops.
More background: Network and ESP Boards.
ANSITerm is open source under the LGPL-3.0 license. · Repository · Issues