mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #1007] How to tell if the WIFI manager just went through AP mode? #858
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#858
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 @KiavashS on GitHub (Feb 10, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1007
I'm writing a SPIFFS module to save and retrieve additional parameters through WifiManager. I'm having trouble working out the logic of how to best know if I should retrieve stored values from the flash or from the parameters entered on the web page. The parameters aren't mandatory, so I can't just check if there is a value.
I'm thinking if I can detect that the WifiManager went into AP mode the last time it booted, then it means values should be retrieved from the parameters. Otherwise, get them from the stored SPIFFS file.
Any thoughts? Is there a way to tell if on a given boot up, the AP was used to retrieve values?
@lbussy commented on GitHub (Feb 27, 2020):
Assuming the user made a configuration commit, one of the various callbacks would work.
@KiavashS commented on GitHub (Mar 1, 2020):
Sorry I don't understand
@lbussy commented on GitHub (Mar 1, 2020):
Documentation on callbacks.