Skip to content

Unable to connect to WiFi network on ESP32-C3 #6430

Closed
@brentru

Description

@brentru

Board

Adafruit QTPy ESP32-C3

Device Description

Adafruit QTPy ESP32-C3

Hardware Configuration

N/A

Version

latest master

IDE Name

Arduino IDE 1.8.20

Operating System

macOS

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

115200

Description

Unable to connect to both a secure WPA2 and an insecure (open) network. The ESP32-C3 seems to disconnect and the authorization expires. The logs show that the static IP is not assigned by the AP.

I've been able to connect to this network with ESP32, ESP8266, ESP32-S2.

Output from WiFiScan's listing, showing this network:

scan start
[ 34383][V][WiFiGeneric.cpp:317] _arduino_event_cb(): SCAN Done: ID: 130, Status: 0, Results: 10
[ 34383][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 1 - SCAN_DONE
...
2: iotdev (-75)*
...

It may be similar to #6379, however, reverting to commit bb09615 does not solve the issue.

Sketch

Using WiFiClientSecure library sketch, https://github.com/espressif/arduino-esp32/blob/master/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino

Debug Message

[   290][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino EventAttempting to connect to SSID: iotdev
....[  3970][V][WiFiGeneric.cpp:300] _arduino_event_cb(): STA Disconnected: SSID: iotdev, BSSID: b8:f8:53:35:4b:25, Reason: 2
[  3970][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[  3977][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE
[  3984][D][WiFiGeneric.cpp:889] _eventCallback(): WiFi Reconnect Running
[  3994][V][WiFiGeneric.cpp:96] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
...[  7048][V][WiFiGeneric.cpp:300] _arduino_event_cb(): STA Disconnected: SSID: iotdev, BSSID: b8:f8:53:35:4b:25, Reason: 2
[  7048][D][WiFiGeneric.cpp:852] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[  7055][W][WiFiGeneric.cpp:873] _eventCallback(): Reason: 2 - AUTH_EXPIRE
[  7062][D][WiFiGeneric.cpp:898] _eventCallback(): WiFi AutoReconnect Running
[  7070][V][WiFiGeneric.cpp:96] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
.

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions