Closed michael-drury closed 9 months ago
Would it be possible for you to try this esp-idf example and provision with the ESP Provisioning apps so that it will help identify if the issue is relevant to IDF or RainMaker?
Hi Piyush, thanks for the reply. I believe esp-now init/ deinit prior to provisioning was contributing to the issue, as a stripped back reboot into provisioning mode with the latest r-maker updates seems to have fixed the issue. Closing as no longer able to reproduce.
Answers checklist.
IDF / ESP32-Arduino version.
v5.1
Operating System used.
Linux
How did you build your project?
Command line with idf.py
Development Kit.
ESP32-S2
What is the expected behavior?
I expect wifi provisioning to successfully connect my ESP32S2 to the internet consistently, without failure
What is the actual behavior?
While connecting using the app, my mobile is able to successfully send wifi credentials to the ESP, but then fails during the "Confirming Wi-Fi connection." stage. The mobile app reads "Wi-Fi status: authentication error".
The ESP reports a disconnect from wifi_prov_mgr of reason 15 (WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT).
The error logs suggest that this may be due to an invalid password. This isn't the case as the password supplied to the ESP has been check, and is valid.
Steps to reproduce.
This issue was initially encountered in custom code, using host-driven claiming, but i've been able to reproduce using the standard, non-modified esp-rainmaker "switch" example (with self claiming).
This issue is encountered only on some, but not all home network configurations.
Currently, this error is being encountered on a BT-Router, using a dual band signal with WPA-2 security.
I have attempted to connect, directly next to the router to eliminate any RSSI issues, but this also does not appear to fix the issue.
This issue doesn't appear to be new in v5.1, as I encounter the same issue in v5.0.2.
I've also attempted to enable all network compatibility options from the menuconfig in under Wi-Fi, but this doesn't appear to have helped.
Debug Logs.
More Information.
No response