khoih-prog / ESP_WiFiManager

This is an ESP32 / ESP8266 WiFi Connection Manager with fallback web configuration portal. Use this library for configuring ESP32 (including ESP32-S2 and ESP32-C3), ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson
MIT License
371 stars 97 forks source link

[E][WiFiGeneric.cpp:137] wifiLowLevelInit(): esp_wifi_init 4353 #68

Closed GeorgeIOT closed 2 years ago

GeorgeIOT commented 3 years ago

I get the message:

[E][WiFiGeneric.cpp:137] wifiLowLevelInit(): esp_wifi_init 4353

When starting my code (ESP32) I am using version khoih.prog/ESP_WifiManager@^1.7.4 This happens when the programs starts from a reboot or power up.

ESP_WiFiManager ESP_wifiManager("OpenSprinkler_HTTP");

This code is the line prior to void setup() {

Withing the setup loop I have

  if (WiFi.status() == WL_CONNECTED) 
  { 
    Serial.print(F("Connected. Local IP: "));
    Serial.println(WiFi.localIP()); 
  }
  else

On boot this will error out

[E][WiFiGeneric.cpp:137] wifiLowLevelInit(): esp_wifi_init 4353
[E][WiFiGeneric.cpp:137] wifiLowLevelInit(): esp_wifi_init 4353
Setup.....
[WM]
AutoConnect using previously saved SSID/PW, but keep previous settings
[WM] No saved credentials
[WM] Connected after waiting (s) : 0.00
[WM] Local ip = 0.0.0.0
[WM] Connection result:  UNKNOWN
[WM] WiFi.waitForConnectResult Done
[WM] SET AP
[WM] Configuring AP SSID = OpenSprinkler_HTTP
[WM] AP IP address = 192.168.4.1
[WM] HTTP server started
[WM] startConfigPortal : Enter loop
[WM] Connected after waiting (s) : 2.20
[WM] Local ip = 192.168.0.204
[WM] Timed out connection result: WL_CONNECTED

and it will go in to portal mode. Once it times out, it will connect with saved WiFi data.

I have added this code to the void loop() secction

  if (WiFi.status() == WL_CONNECTED) 
  {}
  else 
  {
    Serial.print(".");
    ESP_wifiManager.autoConnect("OpenSprinkler_HTTP");
  }

This is to force a reconnect if WiFi is lost

khoih-prog commented 2 years ago

Hi,

Please follow the instruction in Issue: Bug report and at least provide theMRE as I can 't understand what you're using and can't guess or help anything there.

It's better that you start with the simplest example in ESP_WiFiManager examples to understand the operation of the library, then modify gradually and see where, why and when it's starting to give you the issue.

I'm closing the issue now won't reopen until you give enough info so that anyone can easily duplicate the issue or you can prove this is the bug caused by this library.

Good Luck,