mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1479] Loading example OnDemand.ino does not result in a portal when credentials are not already saved #1261
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#1261
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 @letis009 on GitHub (Aug 22, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1479
Basic Infos
Hardware
WiFimanager Branch/Release: Master
Esp32: ESP32-C3
Hardware: ESP32-C3-Wroom-02
Core Version: ESP32 Arduino 2.0.4 based on ESP-IDF 4.4.2
Description
Config Portal is not visible on any device, only after flashing example sketch with correct SSID and password does the OnDemand button work to enable Portal
after credentials saved the portal is accessible via button press
tried to reduce tx power, set hostname, country, channel and removed password on the autoconnect AP but no difference on any of these changes
Settings in IDE
Module: ESP32 C3 Devkit
Additional libraries: WifiManager.h version 2.0.12 beta
Sketch with no AP
Debug Messages
DEBUG FROM SUCCESSFUL CONNECTION WITH WIFICLIENTEVENTS.ino EXAMPLE
###DEBUG after reloading OnDemand.ino
@tablatronix commented on GitHub (Aug 22, 2022):
This example seems old, are you sure you are using the latest git or beta and master branch?
@letis009 commented on GitHub (Aug 22, 2022):
sorry for the delay . tested again
I downloaded the
https://github.com/tzapu/WiFiManager.git
version now and retested
if I do wm.resetSettings(); & wm.erase(); then after reboot i can not see the AP even those Debug clearly states it is running
I also tried not calling wifi.mode(STA); to see if maybe it would make a difference but only flashing a sketch with SSID and password set then flashing OnDemandConfigPortal.ino from /examples/super/ do I see a AP after pressing button
@tablatronix commented on GitHub (Aug 22, 2022):
Maybe make sure the ap is not timing out, sometimes It takes me over 2 minutes to see an ap, just to be sure you are running it for longer that 120s etc.
What board do you have? I think I have a c3 mini dev board, ill test it
@letis009 commented on GitHub (Aug 23, 2022):
I am using the custom board with bare module. power and uart broken out
2.5a 5v usb power
3.3v ldo reg with in and output filter caps
Enable timing circuit
All as per Espressif hardware design specs
Max3232 ltt -> rs232 level converter
Same exact build works 100% on ESP32-wrover-ie but i can only Assume the c3 is risc-v and the wrover is freertos could be a route issue or something in the timing from flash arrangement differences
Instruction sets a bit out of my pay grade ATM 🤣
Tested time outs on 300s (5min)
The ap shows up almost immediately if ssid:password present before hand
It seems if the first attempt to connect to existing ap is successful then the ondemand works fine
@letis009 commented on GitHub (Aug 23, 2022):
I ran some more tests and set the portal timeout to 3000s (50 minutes) and same MO really
no visible AP
if wm.autoConnect fails for what ever reason the portal will not be visible
@tablatronix commented on GitHub (Aug 23, 2022):
hmm I cannot get my C3 to boot, stuck in loop. Tried all kinds of pio ini options
@letis009 commented on GitHub (Aug 23, 2022):
the primary use case I was testing was to use the config portal onDemand
I have bodged a stable work around but it isnt as designed
will flash the c3 with sketch containing credentials then flash the actual sketch
this seems to work fine for now
I will try get my hands on an S3 or similar to test
@tablatronix commented on GitHub (Aug 23, 2022):
ok i have the bootloader bug fixed, ill test now, I swear such a waste of time, every-time I try to build esp there's some new bs.
@tablatronix commented on GitHub (Aug 23, 2022):
oh well i give up for now
@letis009 commented on GitHub (Aug 23, 2022):
where ... how does wifimanager store the credentials
where would be a good place to get this type of info
@tablatronix commented on GitHub (Aug 23, 2022):
It uses the esp begin() native flash config
@tablatronix commented on GitHub (Aug 23, 2022):
Ok i have a working setup, but I am having some other strange issue. No ap because my code just stops executing?
@tablatronix commented on GitHub (Aug 23, 2022):
Ok I bypassed some stuff and now it starts the AP but I see no AP!!!!!
So yeah this is buggered
@letis009 commented on GitHub (Aug 23, 2022):
It is weird . Thank you for looking into the issue
@tablatronix commented on GitHub (Aug 23, 2022):
Can you try this change?
bool _disableSTA = true; // disable sta when starting ap, always@tablatronix commented on GitHub (Aug 23, 2022):
well nm, i just removed all my testing and it still works.. I wonder if it is flash corruption..
I did some resetsettings AND wm.erase();, not sure if that fixed it , but I cannot make it fail
@letis009 commented on GitHub (Aug 23, 2022):
Will test and let you know results
@tablatronix commented on GitHub (Aug 24, 2022):
I had to use Jasons fork, I cannot get platform IO to work on 3.0.2 without crashing or idf 4.4.1-beta
What version esp framework are you using and if pio, whats your ini?
@letis009 commented on GitHub (Aug 24, 2022):
spinning up a vm with clean vsc and pio
will come back shortly with test results
@letis009 commented on GitHub (Aug 24, 2022):
Awesome . success
All tests are good on Jasons fork with your pio above
for testing purposes on the master where should i call
bool _disableSTA = true; // disable sta when starting ap, always
I want to use AsyncDelay for other feature and it is giving me issues with older version i think
@tablatronix commented on GitHub (Aug 24, 2022):
Its hardcoded in the .h file
@letis009 commented on GitHub (Aug 24, 2022):
got you , Updating to espressif framework v5 and will test further
@letis009 commented on GitHub (Aug 24, 2022):
Oops , clicked the wrong comment
VScode with pio and esp-idf on version 5 seems to work 100%
what ever the issue is seems resolved
can close issue
thanks for assistance