ESP32-Mapper WiFi is structured as a command-driven scan service exposed over a local HTTP API.
- Firmware boots and starts AP+STA mode.
- HTTP routes are registered.
- Mobile client sends commands (
configure,start,stop). - Scan loop finalizes asynchronous Wi-Fi scans.
- Results are filtered, sorted, and served via JSON.
Firmware entrypoint only:
- initializes
ScannerServer - delegates
setup()andloop()
Declares:
- configuration models (
ScannerConfig,NetworkRecord) - scanner server state
- route handlers and helper methods
Implements:
- AP initialization
- HTTP route registration
- JSON request/response handling
- scan lifecycle and result processing
- telemetry/logging output
ScannerServer tracks:
- active scan state
- last command and command timestamp
- cached network list
- scanner configuration
- device metadata
This firmware is designed for: