-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WPA2 Enterprise not connecting #408
Comments
I'm seeing similar behavior. I didn't see it right away, as my main development machine is kept on rustc 1.75.0-nightly (8edb9b87e 2024-01-02), and my secondary machine is at 1.77.0-nightly(424037dcb 2024-03-18). On the older version, wifi is able to connect without much issue. On this newer version of rustc, I get the same behavior:
|
@Paumanok, I don't think that's the case. I can connect to a personal network. My problem is with the WPA2 Enterprise network. |
So I did some more testing after my original response, I was able to connect to my home router's WPA2 network. My issue was in a raspberry pi I've been using as a development network, which it can no longer connect to, which is WPA-PSK. I was unable to downgrade to 1.75 manually as well, as the 1.75-nightly is no longer available. Standard 1.75 didn't work. I'm wondering if there was some regression that may have a common cause. |
Coming back to say, beginner mistake and I didn't downgrade the actual esp toolchain. going back to 1.75 via
Fixed my wifi connection for now, but the issue is still there with 1.77 |
did you do your test always with a debug build or did you build with |
ALL: Read this: #304 (comment) |
Hi, anyone was able to connect with a WPA2 enterprise network using Rust?
I'm trying with this code, but not luck by now:
`
let mut esp_wifi = EspWifi::new(modem, sysloop.clone(), None)?;
let mut wifi = BlockingWifi::wrap(&mut esp_wifi, sysloop)?;
And the full log is:
Full log:
I (691) rust_esp32_c3_demo::wifi_wpa2: Starting wifi...
I (693) phy_init: phy_version 1150,7c3c08f,Jan 24 2024,17:32:21
I (736) wifi:mode : sta (7c:df:a1:b1:58:0c)
I (737) wifi:enable tsf
I (741) rust_esp32_c3_demo::wifi_wpa2: Scanning...
I (5845) rust_esp32_c3_demo::wifi_wpa2: Found configured access point UTFPR-SERVIDOR on channel 1
I (5846) rust_esp32_c3_demo::wifi_wpa2: Wifi Enterprise: 0:0:0:0:0
I (5854) rust_esp32_c3_demo::wifi_wpa2: Connecting wifi...
I (8270) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (8538) wifi:state: init -> auth (b0)
I (9539) wifi:state: auth -> init (200)
I (9541) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (9542) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (9546) wifi:state: init -> auth (b0)
I (9557) wifi:state: auth -> assoc (0)
I (9573) wifi:state: assoc -> run (10)
I (20862) wifi:state: run -> init (0)
I (20864) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (20865) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (20868) wifi:state: init -> auth (b0)
I (20943) wifi:flush txq
I (20943) wifi:stop sw txq
I (20944) wifi:lmac stop hw txq
I (20946) esp_idf_svc::wifi: EspWifi dropped
I (20947) esp_idf_svc::netif: Dropped
I (20949) esp_idf_svc::netif: Dropped
I (20955) wifi:Deinit lldesc rx mblock:10
I (20959) esp_idf_svc::nvs: NvsDefault dropped
I (20963) esp_idf_svc::eventloop: System event loop dropped
Error: ESP_ERR_TIMEOUT
I (20971) main_task: Returned from app_main()
E (21871) wifi:timeout when WiFi un-init, type=11
Any ideas on this issue?
The text was updated successfully, but these errors were encountered: