Search found 76 matches

by karunt
Fri Jan 12, 2024 9:13 pm
Forum: ESP-IDF
Topic: Why is it not good practice to call esp_wifi_connect() after esp_wifi_disconnect()?
Replies: 11
Views: 87812

Re: Why is it not good practice to call esp_wifi_connect() after esp_wifi_disconnect()?

Ralph, the example wifi provisioning example works right as is. But that's because it calls esp_wifi_connect() function each time the WIFI_EVENT_STA_DISCONNECTED event occurs. But that approach is contrary to what ESP recommends. ESP recommends distinguishing between what causes the WIFI_EVENT_STA_D...
by karunt
Wed Jan 10, 2024 12:52 am
Forum: ESP-IDF
Topic: Why is it not good practice to call esp_wifi_connect() after esp_wifi_disconnect()?
Replies: 11
Views: 87812

Re: Why is it not good practice to call esp_wifi_connect() after esp_wifi_disconnect()?

Figured out why the wifi provisioning example is set up to call esp_wifi_connect() after the WIFI_EVENT_STA_DISCONNECTED event in the event handler. Without calling esp_wifi_connect() after the WIFI_EVENT_STA_DISCONNECTED event, every alternate attempt at provisioning the device fails because wifi p...
by karunt
Sat Jan 06, 2024 12:00 pm
Forum: ESP-IDF
Topic: Why is it not good practice to call esp_wifi_connect() after esp_wifi_disconnect()?
Replies: 11
Views: 87812

Re: Why is it not good practice to call esp_wifi_connect() after esp_wifi_disconnect()?

Here's the link to the specific documentation I'm referring to: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi.html#wi-fi-reconnect Go down to the ESP32 Wi-Fi Event Description section. WIFI_EVENT_STA_DISCONNECTED This event can be generated in the following scenarios: W...
by karunt
Fri Jan 05, 2024 5:05 pm
Forum: ESP-IDF
Topic: Why is it not good practice to call esp_wifi_connect() after esp_wifi_disconnect()?
Replies: 11
Views: 87812

Why is it not good practice to call esp_wifi_connect() after esp_wifi_disconnect()?

Looking at the wifi provisioning example code and the wifi_provisioning component code, it seems at some point, manager.c calls esp_wifi_disconnect(), resulting in the WIFI_EVENT_STA_DISCONNECTED event. But the event handler also calls esp_wifi_connect() each time the WIFI_EVENT_STA_DISCONNECTED eve...
by karunt
Sat Dec 23, 2023 12:06 pm
Forum: ESP-IDF
Topic: How to retrieve WiFi provision ssid and password stored by provisioning manager in nvs flash
Replies: 1
Views: 29450

Re: How to retrieve WiFi provision ssid and password stored by provisioning manager in nvs flash

7000+ views and still no attention from anyone in the Espressif community. Really sad - how do you expect people to learn your platform and build things with ESP chips if nobody within your organization is available to help when people get stuck? After an entire week of looking around, I finally fou...
by karunt
Sun Dec 17, 2023 1:49 am
Forum: ESP-IDF
Topic: How to retrieve WiFi provision ssid and password stored by provisioning manager in nvs flash
Replies: 1
Views: 29450

How to retrieve WiFi provision ssid and password stored by provisioning manager in nvs flash

I'm trying to figure out if there's a way to retrieve the key and value of the wifi ssid that an app feeds to ESP32 using the wifi provisioning example (using NimBLE protocol). This is what I've tried so far, but get a whole load of gibberish in return: Step 1 - Find the name of the namespace in par...
by karunt
Tue Nov 21, 2023 5:57 pm
Forum: General Discussion
Topic: Possibel wifi_provisioning code bug?
Replies: 0
Views: 1507

Possibel wifi_provisioning code bug?

I'm trying to wifi provision a ESP32 chip from an angular app. Everything generally works, except that when I try to provision an existing unsecured wifi access point with a password (when password should be blank), the wifi provisioning code gives a WifiConnectFailedReason value of 1 (which pertain...
by karunt
Fri Nov 17, 2023 9:57 pm
Forum: General Discussion
Topic: Where in wifi provisioning code is wifi_err_reason_t set?
Replies: 0
Views: 1164

Where in wifi provisioning code is wifi_err_reason_t set?

Use case: Providing a network ssid that doesn't require a password to connect to. WHen I don't provide a password, wifi provisioning happens successfully as expected. But when I provide a password, I'd expect error code 202 (WIFI_REASON_AUTH_FAILED). Instead, I get error code 201 (WIFI_REASON_NO_AP_...
by karunt
Fri Jul 21, 2023 9:40 am
Forum: General Discussion
Topic: Menuconfig not working with Release version 5.1 (issue with curses library)
Replies: 1
Views: 1639

Re: Menuconfig not working with Release version 5.1 (issue with curses library)

For anyone who is experiencing this issue, the location to add the curses library to is in your .espressif folder: .espressif/python-env/idf5.1_py3.11env [or similar folder]/Lib/site-packages. From your terminal, navigate to this directory and type:

Code: Select all

pip install windows-curses
by karunt
Fri Jul 21, 2023 9:19 am
Forum: General Discussion
Topic: Menuconfig not working with Release version 5.1 (issue with curses library)
Replies: 1
Views: 1639

Menuconfig not working with Release version 5.1 (issue with curses library)

Updated esp-idf to release version 5.1, but menuconfig doesn't work. Error message reads menuconfig failed to import the standard Python 'curses' library , which apparently is a problem starting with Kconfiglib 13.0.0. If I were to install the curses library with pip install windows-curses , what's ...