Closed Cosmo closed 3 years ago
@Cosmo , the primary difference in the Wi-Fi configuration when you use hard coded credentials is this. Please try setting this value to false and let me know if it works.
Even if this indeed works, it would be nice if you can test the simple Wi-Fi station example from esp-idf with your AP and if you see similar behaviour, file an issue on esp-idf. If you can get some sniffer captures, that would help too.
@shahpiyushv Thank you very much! I wish I would have asked you earlier :)
I set .capable
to false
and now my ESP connects and stays connected — perfect!
So when I understand the flag correctly, PMF stands for protected management frames and either my access point doesn't support it or it's disabled.
After a quick check, my router shows that PMF is grayed-out because WPA2+WPA3 is enabled. WPA3 mandates the use of PMF, whereas in WPA2, it's optional. I guess I need to invest a bit more time into this.
Later, I tested the WiFi station example
. I set my SSID and password via menuconfig
, build and flashed on my device. It worked without any further changes.
So thanks again for saving me a lot of time and a headache. I really appreciate it. 👍
Currently, my only option is to use the provisioning app and scan the QR code to get my device connected to my Wi-Fi.
For some reason, when I try to flash my ESP32 with hardcoded Wi-Fi data (via menuconfig), the ESP32 tries to connect, then restarts, and tries again and again. Same Wi-Fi for both scenarios.
In
menuconfig
I disabled WPA3 support, to see if it makes any difference (no luck). I also created an additional 2.4 GHz Wi-Fi access point in my home to see if the problem still exists. For SSID and password, I used simple characters (a-z, 0-9) to rule out any encoding issues or stuff like that.This is what my monitor looks like on my main Wi-Fi (2.4 GHz / 5 GHz with WPA2/WPA3):
As I mentioned, it works via the provisioning app without any problems -- on the same Wi-Fi.
Can someone please verify whether the hardcoded method works or point me in the right direction to debug my issue?
Thanks!
EDIT: Don't get confused when you read my log. My Wi-Fi SSID is "NoNetworkFound" :)