[PR #522] [CLOSED] Callback during wifi setup loop (for example, to flash an LED) #1637

Closed
opened 2026-02-28 01:30:56 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tzapu/WiFiManager/pull/522
Author: @chrismidgley
Created: 2/15/2018
Status: Closed

Base: masterHead: SetupCallback


📝 Commits (3)

  • 392d33e Added support for callbacks during the setup loop
  • 64d6847 Added support for callbacks during the setup loop
  • 06a2a41 Added 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.

## 📋 Pull Request Information **Original PR:** https://github.com/tzapu/WiFiManager/pull/522 **Author:** [@chrismidgley](https://github.com/chrismidgley) **Created:** 2/15/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `SetupCallback` --- ### 📝 Commits (3) - [`392d33e`](https://github.com/tzapu/WiFiManager/commit/392d33e32c7f53d9dd4c52e93428246f5d165761) Added support for callbacks during the setup loop - [`64d6847`](https://github.com/tzapu/WiFiManager/commit/64d6847c6fa21f1a2b6f481502090c963ffd30fa) Added support for callbacks during the setup loop - [`06a2a41`](https://github.com/tzapu/WiFiManager/commit/06a2a4138fbbb73c06717d6f8efd9f88d85b730a) Added support for callbacks during the setup loop ### 📊 Changes **2 files changed** (+13 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `WiFiManager.cpp` (+9 -0) 📝 `WiFiManager.h` (+4 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 01:30:56 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1637
No description provided.