A pocket Wi-Fi access point for gear that can't make its own network.
Plenty of field equipment can join Wi-Fi but can't host it. That covers ham radios with Wi-Fi control (e.g. Xiegu X6200), Wi-Fi-only iPads (no cellular means no Personal Hotspot), and phones whose hotspot is locked or disabled. Out in the field, with no router around, those devices have no way to see each other.
GadgetAP turns a ~$30 M5StickS3 into a battery-powered WPA2 access point with DHCP. Switch it on and a network appears. Everything that joins gets an address and can talk to everything else. There's no internet, no setup, and no app.
[radio] ───┐
[tablet] ──┼── GadgetAP 192.168.4.1/24 (DHCP)
[phone] ───┘
- Works as soon as it's on: WPA2 AP plus DHCP server at
192.168.4.1 - Each unit has its own credentials, fixed at burn time:
tools/burn.shbakes a random password into each unit's firmware, and the SSID isGadgetAP-XXXX. The same credentials come up on every boot, so you key your radio once. Both are shown on screen (the password in large type), and no shared default password ships anywhere. - The screen shows SSID, password, client count and battery. It dims at 15 s and turns off at 60 s to save power.
- Up to 4 clients on 2.4 GHz, on channel 1, 6 or 11 (selectable from the menu)
- Power on. The screen shows the network name (green) and password (large).
- Join that network from each device. There is no internet, by design. Phones and tablets will warn "no internet" and may try to switch back to cellular or another network. Tell them to stay connected (iOS: "Use Without Internet"; Android: "Stay connected").
- Devices reach each other on 192.168.4.x. The AP itself is 192.168.4.1. Up to 4 clients at once; a fifth can't join.
| Setup | Runtime |
|---|---|
| M5StickS3 internal 250 mAh, Normal profile, 3 clients, screen mostly off | ~70 min |
| Same, Low profile | Not measured yet |
Average draw under AP load is about 130 mA. An ESP32 softAP can't use modem sleep, because the AP has to keep listening for clients. A 1000 mAh battery pack should give roughly 6–8 hours. You can also run it from any USB power bank indefinitely.
| Button | Where | Action |
|---|---|---|
| A | Front face | Wake screen · in the menu: next item / "no" |
| B | Big button on the top edge | Open the menu (screen on) · in the menu: select / "yes" |
| Reset | Small button on the side | Tap = reboot. The firmware never sees it. |
When the screen is dark or dimmed, any button just wakes it, so a stray press can't select anything.
Press B to open it. A moves to the next item and B selects it. Confirm screens use B = yes, A = no. You don't need to remember which is which: every menu and prompt screen shows arrows pointing at the buttons (▲ Select / Yes toward B on the top edge, No / Next ▶ toward A on the front). After 10 s with no input the menu cancels. It always opens on Cancel, so a bump does nothing.
- Blank screen turns the screen off. The AP stays up.
- Power off powers the unit down. On USB power the board can't fully cut itself off, so it goes into deep sleep instead (AP off; a click of the power button wakes it).
- Power profile switches between Normal and Low power (see below). The current profile shows at the right end of the battery line. The AP restarts with the same password, so clients rejoin on their own.
- Channel steps through 1 → 6 → 11, the three channels that don't overlap. Use it to dodge a crowded channel. The AP restarts with the same name and password, so clients follow on their own. The default is 6.
- New name+pw rolls a fresh random SSID and password in the field, for example if a password leaked or two units clash. It asks you to confirm first, because every client has to re-key. The new credentials survive reboots, and the footer shows
*while they're active. - Burned creds goes back to the credentials baked in at flash time.
- Reflashing with a new burned password always overrides credentials rolled in the field.
*means field-rolled credentials are active, not the burned ones.!means a saved setting failed to apply or the settings storage misbehaved. The unit falls back to its burned credentials and keeps running. A reboot usually clears it.
The processor runs at 80 MHz in both profiles. That's the lowest speed Wi-Fi supports, and plenty for an AP.
| Normal | Low power | |
|---|---|---|
| Wi-Fi modes | 802.11b/g/n | 802.11g/n (beacons go out at 6 Mbps instead of 1 Mbps) |
| Beacon interval | 100 ms | 300 ms |
| TX power | ~19.5 dBm | ~8.5 dBm (room-scale range) |
Use Low when everything sits close to the unit. Clients must support 802.11g, which is nearly everything made after about 2003. They may also take a moment longer to find the network. The battery line shows norm or LOW.
| Device | Status | Notes |
|---|---|---|
| M5Stack M5StickS3 | Supported, tested | ESP32-S3-PICO-1, 8 MB flash, 8 MB PSRAM, 1.14" 240×135 display, ~250 mAh battery, USB-C. About $26–35. |
| M5StickC / StickC Plus / StickC Plus2 | Not supported | Different chip, display and power circuitry. Won't build or run as-is. |
| Other ESP32 boards | Not supported (yet) | Possible ports; see below. |
What a port needs: an ESP32-family chip with 2.4 GHz Wi-Fi, a display M5GFX can drive, and enough RAM for a full-screen frame buffer (~65 KB at 240×135; the StickS3 uses PSRAM). Everything is drawn through M5Unified, so an M5 board that M5Unified supports is the easiest starting point. The button and power-off handling assume the StickS3's front button and PMIC.
All ESP32s are 2.4 GHz only. There is no 5 GHz support on any of them.
- A USB-C cable that carries data (some charge-only cables don't), for flashing
- Optionally, a USB power bank for runs longer than the internal battery's ~70 min
Anything with 2.4 GHz Wi-Fi and WPA2 should work. Tested so far:
| Client | Result |
|---|---|
| Xiegu X6200 (OpenX6X00 firmware) | Works. Stays connected, and rejoins after AP restarts (you may need to press Connect after going out of range). |
| macOS laptop | Works |
| iPhone | Works. Choose "Use Without Internet" when iOS warns there's no internet. |
In Low power mode clients must support 802.11g, which covers nearly everything made since about 2003.
With arduino-cli:
arduino-cli config add board_manager.additional_urls \
https://static-cdn.m5stack.com/resource/arduino/package_m5stack_index.json
arduino-cli core update-index
arduino-cli core install m5stack:esp32
arduino-cli lib install M5Unified M5GFX
arduino-cli board list # find the port
tools/burn.sh <port> # unique random password, build, flashburn.sh prints the password and logs it to burn-log.txt (git-ignored), so you have a record of every unit. To reflash a unit and keep its burned credentials, use tools/burn.sh <port> --keep. This keeps what's in secrets.h. If you rolled new credentials in the field, those stay saved on the unit until the burned password changes. To pin the SSID, run GADGETAP_SSID=MyNet tools/burn.sh <port>.
Tested with core m5stack:esp32 3.3.10 and M5Unified/M5GFX 0.3.0.
Flashing tips:
- If upload can't connect, put the board in download mode: hold the small reset button ~2 s until the green LED blinks, then upload.
- If the screen stays dark after flashing, the chip went back into download mode. Tap the small reset button once to boot normally.
burn-log.txt holds every unit's password in plain text. Git ignores it, but that's not a backup or access control, so keep it somewhere private. Put a label on each unit too. To reflash a unit and keep its credentials, you need its secrets.h. If that's lost, --keep refuses to run rather than silently burning a new password. Recreate secrets.h from the password shown on the unit's screen.
Copy firmware/GadgetAP/secrets.example.h to secrets.h (it's git-ignored), edit it, then build with arduino-cli compile/upload (FQBN m5stack:esp32:m5stack_sticks3:CDCOnBoot=cdc). The build deliberately fails if there's no password.
firmware/GadgetAP/GadgetAP.ino the firmware
firmware/GadgetAP/secrets.example.h template for hand-set credentials
tools/burn.sh build + flash one unit with a unique password
secrets.h and burn-log.txt are created locally by burn.sh and never committed.
- The battery % reading is jumpy on a new cell while charging. It settles after the first full discharge.
- The battery keeps charging while the unit is powered off.
- macOS sometimes reports Wi-Fi as "not associated" while it's actually connected. If you're checking a link, use ping.
- v2 hardware idea: bare ESP32-S3/C3, a 1000+ mAh LiPo, and a 3D-printed case
- Optional WPA2/WPA3 mixed mode
GadgetAP is MIT; see LICENSE. It builds on separately licensed libraries, which keep their own terms:
- M5Unified and M5GFX (MIT)
- Arduino core for ESP32 / ESP-IDF (LGPL-2.1 / Apache-2.0)
