mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1444] setDebugOutput(false) causes the automatic Wi-Fi connection to fail #1235
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1235
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Maurizio1 on GitHub (Jun 30, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1444
Basic Infos
Hardware
WiFimanager Branch/Release: Master
Esp8266/Esp32: Esp32
Hardware: LILYGO TTGO T-Camera WROVER PIR Mic (v1.6.2)
Core Version: 2.4.0, staging
Description
When setting setDebugOutput(false) Wi-Fi connection will systematically fail.
Settings in IDE
Module: Esp32 Dev Module
Additional libraries:
Sketch
Debug Messages
@tablatronix commented on GitHub (Jun 30, 2022):
yikes, I bet theres a bad debug block check
@tablatronix commented on GitHub (Jun 30, 2022):
confirmed, but i have no idea wtf is going on
@tablatronix commented on GitHub (Jun 30, 2022):
Its a race condition, ill fix it
@tablatronix commented on GitHub (Jun 30, 2022):
Added a fix to git, a workaround is to make sure you set mode sta in setup early as possible on esp32
@tablatronix commented on GitHub (Jun 30, 2022):
b8205e71f3@Maurizio1 commented on GitHub (Jun 30, 2022):
Thank you @tablatronix.
I'll just add this comment because it could help someway...
Error seems to happen only when WM_DEBUG_LEVEL == DEBUG_VERBOSE
I also have found a quick workaround by adding a small delay in the following function in WiFiManager.cpp:
@tablatronix commented on GitHub (Jul 1, 2022):
The debugging is just causing delays in code, helping the race condition fix itself.
The workaround would be set WiFi.mode to sta after setup and add a delay immediately after setup, wifi takes about 200ms to start
I will test on esp8266 today, this was only tested in esp32 as it requires wifi to init, esp8266 does not, But I will check if it is a different or similar situation
@tablatronix commented on GitHub (Jul 1, 2022):
esp8266 works fine, this is unrelated to this issue, and your wasting my time, thanks.
@Maurizio1 did you get a chance to test latest git?
@TI-SH-K205 commented on GitHub (Jul 2, 2022):
Sir can we meet in WhatsApp place 🙏
+8801799259190
On Sat, Jul 2, 2022, 1:43 AM Shawn A @.***> wrote:
@tablatronix commented on GitHub (Jul 2, 2022):
we have a discord, or create a new issue for your specific issue, do not highjack closed issues
@TI-SH-K205 commented on GitHub (Jul 4, 2022):
Sir someone give me this link.. is this link is safe for me
On Sat, Jul 2, 2022, 7:40 AM Shawn A @.***> wrote:
@tablatronix commented on GitHub (Jul 4, 2022):
Its on the readme
@Maurizio1 commented on GitHub (Jul 4, 2022):
I'm sorry. I didn't mean to waste your time.
Of course I did test your patch and it worked.
That's why I wrote "Thank you @tablatronix" before my last post and put a "thumb up" emoji on your answer. Sorry if I was not clear enough.
As for the "debugging" that you mentioned I just added the "delay(100)" instruction, that's all. My intent was to help to pinpoint the cause.
Also, on my device (ESP32), I get more than 25 failed attempts before Wi-Fi starts.
Again, I'm not trying to devour your time, I'm just giving some more info in the hope it can help, so please forgive me.
Anyway, your patch worked for me, so I am OK with that. Thank you again.
@tablatronix commented on GitHub (Jul 4, 2022):
Sorry @Maurizio1 that was not to you!, I deleted some other posts, someone else.
Thanks for creating issues and improving wifimanager!
That comeback issue is another known issue with some routers.. Although its a bit different, can you open a new issue for that one, and I will link it to the workarounds and other issue
@Maurizio1 commented on GitHub (Jul 4, 2022):
No problem @tablatronix. :-)
Sure! I will open another issue for that then.
Thank you