mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1149] AP & STA MODE TOGETHER #985
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#985
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 @Abedi98 on GitHub (Nov 20, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1149
hi
How to access ap mode when esp connected to wifi
I want to access AP mode forever.
thanks
@Renison-Gohel commented on GitHub (Nov 24, 2020):
Developers already have an example called nonblocking which may fulfil you recruitment. Thanks to @tablatronix & @tzapu for such awesome lib.
.
@tablatronix commented on GitHub (Nov 24, 2020):
I would run the webserver only on sta mode, running sta+ap is not very stable
@ldijkman commented on GitHub (Dec 7, 2020):
is there webserver example for AP
and or Ap+STA
for my tft touch thermostat
https://www.youtube.com/watch?v=qNYT64CaLEI
https://oshwlab.com/l.dijkman/esp32-dev-kit-38-pin-to-spi-touch-tft
@Abedi98 commented on GitHub (Mar 5, 2021):
When I connect to a WiFi via wifimanager, I run this code in the setup and an access point is permanently active, but after 10 to 15 minutes the wifi is disconnected and it tries to connect to the WiFi again.
How can this problem be solved?
@Abedi98 commented on GitHub (Mar 28, 2021):
Is there no solution to this problem?
@tablatronix commented on GitHub (Mar 29, 2021):
What problem? This is easily doable
@tablatronix commented on GitHub (Mar 29, 2021):
You did not provide any info in why your wifi disconnects after 10 minutes
@Abedi98 commented on GitHub (Mar 30, 2021):
In the setup method, if the value of mobilemode_flag is equal to 1, Wi-Fi will run in AP_STA mode.
In this case, the station is active and an access point called LOCALHOSTMob is created next to the station and disconnects the station.
@tablatronix commented on GitHub (Mar 31, 2021):
Well yeah you call startconfigportal, why?
you want configportal to run always in sta ap mode? Then you have to setup wifi on your own and use startwebportal. There IS a way to set mode for captive portal not sure if its exposed, let me check
@Abedi98 commented on GitHub (Apr 1, 2021):
Yes I want it to be enabled in AP_STA mode and connected to home WiFi in station mode and an access point always enabled next to station mode
@tablatronix commented on GitHub (Apr 1, 2021):
These are not exposed you will have to change them in .h file to test if this works.
set mode you want STA+AP
then start cp
You can try changing those to false and test. I will check later
@Abedi98 commented on GitHub (Apr 3, 2021):
Hi. I applied these changes to the .h file but disconnected the station again
@tablatronix commented on GitHub (Apr 3, 2021):
esp32 or 8266?
@tablatronix commented on GitHub (Apr 3, 2021):
Working fine for me so far esp8266, I will see if something disconnects
@Abedi98 commented on GitHub (Apr 3, 2021):
Wemos d1 mini (8266)
@tablatronix commented on GitHub (Apr 3, 2021):
Still connected to both.. Works fine
Something wrong with your code
you are using a server, wm already runs a server
what is all this ?
wdt_reset(); ESP.reset(); ESP.restart(); while (1)wdt_reset();
@Abedi98 commented on GitHub (Apr 4, 2021):
See the part where I bolded.
When wm.startConfigPortal ("WIFIAPSTA"); I run it, the station no longer connects and the loop does not run.
@tablatronix commented on GitHub (Apr 4, 2021):
What does your serial say ? Mine works just like that, do you get an error?
@Abedi98 commented on GitHub (Apr 4, 2021):
no
There is no error. Only after 10 minutes the station is disconnected and reconnected again
@tablatronix commented on GitHub (Apr 4, 2021):
If you enable esp debugging it should show more info about what the radio is doing and clients.
Not sure what else could be going on, is your power supply good ?
@tablatronix commented on GitHub (Apr 4, 2021):
Also you might want to try using the non blocking code, since you will want your code to keep processing past setup
@Abedi98 commented on GitHub (Apr 5, 2021):
There is no problem when I test the same code with the following library,
https://github.com/Hieromon/AutoConnect
but I have this problem with the wifimanager library.
What is the problem?
@yukimach commented on GitHub (Jun 16, 2023):
I'm trying to keep config portal open even after connect on a esp32s2.
but once the esp32 connects to a wifi router the portal automatically closes. Is it possible to keep it open? I've read through a few posts but it's not very clear. This sort of user experience by tonyp7 is what I'm looking to do without having to use esp idf. https://www.youtube.com/watch?v=hxlZi15bym4&source_ve_path=MjM4NTE&feature=emb_title&ab_channel=idyl.io
I've set
and use