You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that I am using the latest version of esp32-wifi-manager
I have searched open and closed issues to ensure it has not already been reported
Description
When calling wifi_manager_destroy(), the ESP32 crashes with: Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Steps to Reproduce
Used Demo program and modified the monitor task to call destroy after wifi is established
void monitoring_task(void *pvParameter)
{
for (;;)
{
ESP_LOGI(TAG, "free heap: %d", esp_get_free_heap_size());
vTaskDelay(pdMS_TO_TICKS(10000));
if (isWifiVerified)
{
if (wifi_manager_fetch_wifi_sta_config())
{
wifi_config_t *wifiConfig = wifi_manager_get_wifi_sta_config();
printf("ssid:%s password:%s\r\n", wifiConfig->sta.ssid, wifiConfig->sta.password);
// delay after connection to allow the wifi_manager to send info back to phone
vTaskDelay(pdMS_TO_TICKS(5000));
// kill and cleanup the wifi manager. Not needed anymore.
wifi_manager_destroy();
}
}
}
}
void cb_connection_ok(void *pvParameter)
{
ip_event_got_ip_t* param = (ip_event_got_ip_t*)pvParameter;
/* transform IP to human readable string */
char str_ip[16];
esp_ip4addr_ntoa(¶m->ip_info.ip, str_ip, IP4ADDR_STRLEN_MAX);
ESP_LOGI(TAG, "I have a connection and my IP is %s!", str_ip);
//set boolean to tell task we are connected
isWifiVerified = true;
}
System Configuration
ESP32 with demo code provided by esp32-wifi-manager
Environment (Operating system, version and so on):
Prerequisites
Description
When calling wifi_manager_destroy(), the ESP32 crashes with:
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Steps to Reproduce
Used Demo program and modified the monitor task to call destroy after wifi is established
System Configuration
ESP32 with demo code provided by esp32-wifi-manager
The text was updated successfully, but these errors were encountered: