An advanced ESP32 Rust-based WiFi configuration system that automatically switches between Access Point mode for initial setup and Client mode for normal operation.
- 🔄 Dual Mode Operation: Seamless switching between AP and Client modes
- 🌐 Web-Based Configuration: Intuitive HTML interface for WiFi setup
- 💾 Persistent Storage: Credentials securely stored in ESP32 flash memory
- 🛡️ Memory Safety: Built with Rust for zero-cost abstractions
- ⚡ Embassy Async: Modern async/await architecture
- 📱 Mobile Responsive: Works perfectly on all devices
- 🔌 Auto-Reconnection: Handles network drops gracefully
- 🚀 Blazingly Fast: Optimized performance with Rust
- ESP32 boots without stored credentials
- Automatically starts in Access Point mode
- Creates WiFi hotspot:
ESP32-Config - Serves configuration page at
192.168.13.37 - User enters WiFi credentials via web interface
- Credentials saved to flash and device reboots
- ESP32 reads stored credentials from flash
- Connects to configured WiFi network as client
- Serves main application web interface
- Monitors connection health and reconnects automatically
| Component | Requirement |
|---|---|
| Microcontroller | ESP32 (any variant with WiFi) |
| Flash Memory | Minimum 4MB |
| Power Supply | 3.3V, 500mA minimum |
| Connection | USB or UART for programming |
[dependencies] esp-hal = { version = "1.0.0-beta", features = ["esp32", "defmt", "unstable"] } embassy-executor = { version = "0.7.0", features = ["defmt", "task-arena-size-65536"] } embassy-net = { version = "0.6.0", features = ["dhcpv4", "medium-ethernet", "tcp", "udp"] } embassy-time = { version = "0.4.0", features = ["generic-queue-8"] } esp-wifi = { version = "0.13.0", features = ["builtin-scheduler", "defmt", "esp-alloc", "esp32", "wifi"] } esp-storage = { version = "0.4.0", features = ["esp32"] } picoserve = { version = "0.15.0", features = ["embassy"] } heapless = { version = "0.8.0", default-features = false } serde = { version = "1.0.217", default-features = false, features = ["derive"] } static_cell = { version = "2.1.0", features = ["nightly"] } defmt = "0.3.10" anyhow = { version = "1.0.95", default-features = false } embedded-storage = "0.3.0" critical-section = "1.2.0"