Skip to content

ESP32 doesn't save a password to configured access point and configuration web page hangs on connecting #105

@pawelc06

Description

@pawelc06

Description

Running default_demo example.
ESP32 doesn't save a password to configured access point and configuration web page hangs on connecting.
ESP 32 STA gets IP from DHCP.
After ESP32 reset it is visible in logs that configuration of access point was not saved.
I tried with at least 2 different access points with the same effect.

Steps to Reproduce

  1. Erase the ESP32 device
  2. Flash ESP32 with master branch(19.08.2020)
  3. Reset device and enable setial monitor to observe the logs
  4. Connect to esp32 wi fi access point
  5. Open configuration web page
  6. Select home router access point (in this case 'vault05')
  7. Enter password and click Join
  8. Connection to vault05 screen displays permanently with pulsing circle

System Configuration

Module used: ESP32 DEVKITV1
Visual Studio Code with ESP32 IDF 4.2
Windows 8.1

Logs from serial monitor after connecting:
I (43810) http_server: POST /connect.json
I (43810) http_server: ssid: vault05, password: XXXXXXXXXXXXXXX22
I (43810) wifi_manager: MESSAGE: ORDER_CONNECT_STA
I (44020) dns_server: Replying to DNS request for android.prod.cloud.netflix.com from 10.10.0.2
I (45310) http_server: GET /status.json
I (45470) http_server: GET /status.json
I (46620) wifi_manager: WIFI_EVENT_STA_CONNECTED
I (47620) esp_netif_handlers: sta ip: 192.168.50.219, mask: 255.255.255.0, gw: 192.168.50.1
I (47620) wifi_manager: IP_EVENT_STA_GOT_IP
I (47620) wifi_manager: WM_EVENT_STA_GOT_IP
I (47630) wifi_manager: Set STA IP String to: 192.168.50.219
I (47630) wifi_manager: About to save config to flash
I (50620) main: free heap: 204548
I (60620) main: free heap: 204548
I (70620) main: free heap: 204548
I (80620) main: free heap: 204548
I (90620) main: free heap: 204548
I (100620) main: free heap: 204548
I (110620) main: free heap: 204548
I (120620) main: free heap: 204548
I (130620) main: free heap: 204548
I (140620) main: free heap: 204548
I (150620) main: free heap: 204548
I (160620) main: free heap: 204760
I (170620) main: free heap: 204760

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions