[PR #584] [MERGED] Changed setAPCallback and setSaveConfigCallback to take std::function… #1650

Closed
opened 2026-02-28 02:12:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/tzapu/WiFiManager/pull/584
Author: @cmarrin
Created: 4/7/2018
Status: Merged
Merged: 6/19/2018
Merged by: @tablatronix

Base: developmentHead: development


📝 Commits (1)

  • 174bb61 Changed setAPCallback and setSaveConfigCallback to take std::function params

📊 Changes

2 files changed (+7 additions, -7 deletions)

View changed files

📝 WiFiManager.cpp (+3 -3)
📝 WiFiManager.h (+4 -4)

📄 Description

… params

This allows Predicates and Lambdas to be passed. Still allows bare function pointers
so this patch is fully backward compatible. Tested on WiFiManager examples for
backward compatibility and on my own project (OfficeClock) for handling lambdas with
captured variables


🔄 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/584 **Author:** [@cmarrin](https://github.com/cmarrin) **Created:** 4/7/2018 **Status:** ✅ Merged **Merged:** 6/19/2018 **Merged by:** [@tablatronix](https://github.com/tablatronix) **Base:** `development` ← **Head:** `development` --- ### 📝 Commits (1) - [`174bb61`](https://github.com/tzapu/WiFiManager/commit/174bb615e644b04e2787d2d0eea5b20086c2775a) Changed setAPCallback and setSaveConfigCallback to take std::function params ### 📊 Changes **2 files changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `WiFiManager.cpp` (+3 -3) 📝 `WiFiManager.h` (+4 -4) </details> ### 📄 Description … params This allows Predicates and Lambdas to be passed. Still allows bare function pointers so this patch is fully backward compatible. Tested on WiFiManager examples for backward compatibility and on my own project (OfficeClock) for handling lambdas with captured variables --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 02:12:31 +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#1650
No description provided.