Join Wi-Fi
Wi-Fi SoftAP hotspot
The device hosts its own hotspot for phone-based provisioning or local control.
Join Wi-Fi
Device hotspot
ESP32 Wi-Fi parts
Official path: examples/wifi/getting_started/softAP
01 Overview
ESP32 operates as an access point. Suitable for first-time setup or environments without a router.
- Use when: out-of-box setup, factory floor LAN.
- Avoid when: the device is already on the customer's router and only needs cloud access.
- Officially verified: SSID broadcast and STA association.
- Not implemented by the official example: captive portal, auto-shutdown, AP+STA coexistence policy.
02 Hardware
- Module and antenna requirements are the same as in Station mode.
- Multiple connected clients increase current draw and heat; ensure adequate 3.3V rail margin.
03 Software flow
1. Set WIFI_MODE_AP with SSID, channel, and max client count.
2. DHCP assigns addresses to phones.
3. Products typically add an HTTP server for a configuration page.
4. After provisioning, switch to STA or APSTA — do not leave an open hotspot running indefinitely.
04 Core points
- An open hotspot is a security risk. At minimum, require a password and a timeout.
- Choose a channel with minimal interference.
- Customization options: captive portal, AP+STA mode, hotspot shutdown policy.