[PR #20] [MERGED] Allocate the DNSServer and ESP8266WebServer on the heap at begin() time and free them when autoConnect() terminates. #1555

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

📋 Pull Request Information

Original PR: https://github.com/tzapu/WiFiManager/pull/20
Author: @alltheblinkythings
Created: 12/14/2015
Status: Merged
Merged: 12/15/2015
Merged by: @tzapu

Base: masterHead: for-upstream


📝 Commits (1)

  • d3274bc Allocate the DNSServer and ESP8266WebServer on the heap at begin() time and free them when autoConnect() terminates.

📊 Changes

2 files changed (+80 additions, -84 deletions)

View changed files

📝 WiFiManager.cpp (+77 -81)
📝 WiFiManager.h (+3 -3)

📄 Description

This reduces the likelihood of a stack overflow when WifiManager is instantiated in setup(),
and lowers memory usage (after WiFi is connected) when it's instantiated globally.


🔄 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/20 **Author:** [@alltheblinkythings](https://github.com/alltheblinkythings) **Created:** 12/14/2015 **Status:** ✅ Merged **Merged:** 12/15/2015 **Merged by:** [@tzapu](https://github.com/tzapu) **Base:** `master` ← **Head:** `for-upstream` --- ### 📝 Commits (1) - [`d3274bc`](https://github.com/tzapu/WiFiManager/commit/d3274bc5b9b93ec1c6cd9e12ce7877452778e00d) Allocate the DNSServer and ESP8266WebServer on the heap at begin() time and free them when autoConnect() terminates. ### 📊 Changes **2 files changed** (+80 additions, -84 deletions) <details> <summary>View changed files</summary> 📝 `WiFiManager.cpp` (+77 -81) 📝 `WiFiManager.h` (+3 -3) </details> ### 📄 Description This reduces the likelihood of a stack overflow when WifiManager is instantiated in setup(), and lowers memory usage (after WiFi is connected) when it's instantiated globally. --- <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:39 +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#1555
No description provided.