mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[PR #522] [CLOSED] Callback during wifi setup loop (for example, to flash an LED) #1637
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#1637
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?
📋 Pull Request Information
Original PR: https://github.com/tzapu/WiFiManager/pull/522
Author: @chrismidgley
Created: 2/15/2018
Status: ❌ Closed
Base:
master← Head:SetupCallback📝 Commits (3)
392d33eAdded support for callbacks during the setup loop64d6847Added support for callbacks during the setup loop06a2a41Added support for callbacks during the setup loop📊 Changes
2 files changed (+13 additions, -0 deletions)
View changed files
📝
WiFiManager.cpp(+9 -0)📝
WiFiManager.h(+4 -0)📄 Description
This very small patch enables a new feature to provide for an optional callback during the wifi config. It is optional, so non-disruptive to existing implementations. If setSetupLoopCallback is passed a function, that function will be called prior to yield() inside startConfigPortal. We use this to "fast flash" an LED to indicate (pin 2 on the NODEMCU) to indicate that the device is pending configuration, rather than in operational mode.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.