tuliocharles/esp_wifi_interface

uploaded 2 days ago
ESP-WIFI TOP LEVEL ESP IDF WIFI CONNECTION

readme

# esp_wifi_interface

## Requirements
- ESP‑IDF (v4.x or newer) with **NVS Flash** and **HTTP Server** components enabled  
- ESP32 board supported by your ESP‑IDF version  

## Behavior
- On boot, reads `SSID` from NVS  
  - If `SSID != "empty"`, enters **STA mode** and tries to connect  
  - If connection fails **esp_max_retry** times, or if `SSID == "empty"`, falls back to **AP mode** at **192.168.4.1**  

## Web Configuration
1. Connect your PC/phone to the Wi‑Fi network  
    SSID: COIIOTE  
    Password: coiiote123  
2. Open in your browser:  
    http://192.168.4.1/getssid  
3. Enter your target **SSID** and **Password**, then submit  
4. ESP32 saves credentials to NVS and **restarts**  

## Usage
Build, flash and monitor:  
- **First boot** (NVS empty): runs as AP for setup  
- **Subsequent boots**: runs as STA until it either connects or retries exhaust, then re-enters AP mode for reconfiguration  

# trouble shooting
Component Config -> HTTP Server -> Max HTTP Request Header Length: 1024

Links

Supports all targets

Maintainer

  • Túlio Carvalho <tulio.cefetmg@gmail.com>

License: MIT

To add this component to your project, run:

idf.py add-dependency "tuliocharles/esp_wifi_interface^0.0.3"

or download archive

Stats

  • Archive size
    Archive size ~ 11.07 KB
  • Downloaded in total
    Downloaded in total 3 times
  • Downloaded this version
    This version: 1 time

Badge

tuliocharles/esp_wifi_interface version: 0.0.3
|