mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1401] Config mode in WiFi off mode #1202
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#1202
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 @kargarisaac on GitHub (Apr 25, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1401
Hi,
Thank you for the great library. I want to use esp32 in a very power critical application. So I need to optimize power consumption as much as possible. I'm looking for a way to do the config mode in a more efficient way and not to be in wifi active mode for 2 to 3 minutes. I was thinking if you can guide me to do sth like below.
Do you have any suggestion to do something like this?
Thank you in advance for the help
@tablatronix commented on GitHub (Apr 25, 2022):
Ideally for this you would require the user to do a special action or press a reset and only then use the captive portal.
why 2-3 minutes?
@kargarisaac commented on GitHub (Apr 25, 2022):
The board goes to access point mode untile the user selects the wifi and input the password. Then it saves them and goes to deep sleep mode. I put the time out to 120-180 seconds.
I didn't get your solution. Can you please explain more?
@tablatronix commented on GitHub (Apr 25, 2022):
wm.setConfigportalTimeout() controls how long to stay on, I would never use configportal on a battery device and only use on demand or reset.
you are asking to turn wifi off while in configuration mode? That is not possilble, it IS wifi. Captive portals and most web browsers will fail if the site dissapears.
@kargarisaac commented on GitHub (Apr 25, 2022):
So how do you suggest to set wifi setting for battery device? It is not possible to hard code it and the user should be able to set the credentials based on his/her wifi. Right now the board goes to config mode when the user puts the battery in for 120 seconds and the user should set the wifi credentials in that time. Then it goes to deep sleep and every few hours, it wakes up and send sensed data from sensors to cloud.
Any suggestion would be appreciated.
@tablatronix commented on GitHub (Apr 25, 2022):
ok so not sure how you can get any better than that
@kargarisaac commented on GitHub (Apr 29, 2022):
I thought about this and couldn't find a better solution to config wifi credentials and will continue with this for now.
@tablatronix commented on GitHub (Apr 29, 2022):
There is a new way to do it over serial but thats about it. Or only allow config if powered by usb etc?