[GH-ISSUE #1659] Custom Parameter dont show #1409

Open
opened 2026-02-28 01:29:57 +03:00 by kerem · 8 comments
Owner

Originally created by @woodenplastic on GitHub (Sep 26, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1659

Hi,

When i use more than 20 custom Parameter the captive Portal doesnt work anymore and i have to refresh the Seite endlessly until the parameters randomly appear.

Is there any limits for parameters i have to keep in mind?

Originally created by @woodenplastic on GitHub (Sep 26, 2023). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1659 Hi, When i use more than 20 custom Parameter the captive Portal doesnt work anymore and i have to refresh the Seite endlessly until the parameters randomly appear. Is there any limits for parameters i have to keep in mind?
Author
Owner

@tablatronix commented on GitHub (Sep 29, 2023):

you are running out of memory, either in param storage or in the html string flush, There are some things we can do to reduce that but will require code changes

<!-- gh-comment-id:1741557310 --> @tablatronix commented on GitHub (Sep 29, 2023): you are running out of memory, either in param storage or in the html string flush, There are some things we can do to reduce that but will require code changes
Author
Owner

@woodenplastic commented on GitHub (Sep 30, 2023):

i searched some other issues and i saw other people having this problem if i use a lot of custom html parameters. i saw branches with chunked respones but im not able to get it done because i lost oversight over all needed changes. is there a way you could show me how to do it?

<!-- gh-comment-id:1741744671 --> @woodenplastic commented on GitHub (Sep 30, 2023): i searched some other issues and i saw other people having this problem if i use a lot of custom html parameters. i saw branches with chunked respones but im not able to get it done because i lost oversight over all needed changes. is there a way you could show me how to do it?
Author
Owner

@tablatronix commented on GitHub (Sep 30, 2023):

Yeah no-one ever tested those, I will try to update them, I intended to add a dynamic param test to add a bunch to test memory, and these fixes and never got around to it. There is also the option to multipart flush the webserver output, not sure how though

<!-- gh-comment-id:1741782747 --> @tablatronix commented on GitHub (Sep 30, 2023): Yeah no-one ever tested those, I will try to update them, I intended to add a dynamic param test to add a bunch to test memory, and these fixes and never got around to it. There is also the option to multipart flush the webserver output, not sure how though
Author
Owner

@woodenplastic commented on GitHub (Sep 30, 2023):

That would be lovely! I will do testing if you got something.

I am working on a example to show checkboxes and sliders with easy styling to contribute something. It seems to be a problem for many people.
With the css updated this library is a capable solution for a lot of usecases.

<!-- gh-comment-id:1741787462 --> @woodenplastic commented on GitHub (Sep 30, 2023): That would be lovely! I will do testing if you got something. I am working on a example to show checkboxes and sliders with easy styling to contribute something. It seems to be a problem for many people. With the css updated this library is a capable solution for a lot of usecases.
Author
Owner

@woodenplastic commented on GitHub (Oct 3, 2023):

void WiFiManager::HTTPSend(const String &content) {
server->sendHeader("Transfer-Encoding", "chunked");
server->send(200, "text/html", ""); // Send the initial HTTP headers

size_t contentLength = content.length();
size_t chunkSize = 256; // Adjust this value based on your requirements

for (size_t i = 0; i < contentLength; i += chunkSize) {
size_t chunkEnd = min(i + chunkSize, contentLength);
size_t chunkLength = chunkEnd - i;

// Send the chunk size in hexadecimal followed by CRLF
server->sendContent(String(chunkLength, HEX));
server->sendContent("\r\n");

// Send the actual chunk data
server->sendContent(content.substring(i, chunkEnd));
server->sendContent("\r\n");

}

// Send a zero-length chunk to indicate the end of the response
server->sendContent("0\r\n\r\n");
}

that helped a lot for me, parameters show now 50% up in wifi (interestingly not in wifinoscan). Still captive portal not working.

<!-- gh-comment-id:1744815951 --> @woodenplastic commented on GitHub (Oct 3, 2023): void WiFiManager::HTTPSend(const String &content) { server->sendHeader("Transfer-Encoding", "chunked"); server->send(200, "text/html", ""); // Send the initial HTTP headers size_t contentLength = content.length(); size_t chunkSize = 256; // Adjust this value based on your requirements for (size_t i = 0; i < contentLength; i += chunkSize) { size_t chunkEnd = min(i + chunkSize, contentLength); size_t chunkLength = chunkEnd - i; // Send the chunk size in hexadecimal followed by CRLF server->sendContent(String(chunkLength, HEX)); server->sendContent("\r\n"); // Send the actual chunk data server->sendContent(content.substring(i, chunkEnd)); server->sendContent("\r\n"); } // Send a zero-length chunk to indicate the end of the response server->sendContent("0\r\n\r\n"); } that helped a lot for me, parameters show now 50% up in wifi (interestingly not in wifinoscan). Still captive portal not working.
Author
Owner

@timr49 commented on GitHub (Jun 29, 2025):

that helped a lot for me, parameters show now 50% up in wifi (interestingly not in wifinoscan). Still captive portal not working.

Hi @woodenplastic - not sure you got to with this but if it helps I developed a chunking enhancement for WiFiManager, which you can get from branch Chunking in the repo https://github.com/timr49/WiFiManager
It is described in https://github.com/timr49/WiFiManager/blob/Chunking/PAGE.md

<!-- gh-comment-id:3016646134 --> @timr49 commented on GitHub (Jun 29, 2025): > that helped a lot for me, parameters show now 50% up in wifi (interestingly not in wifinoscan). Still captive portal not working. Hi @woodenplastic - not sure you got to with this but if it helps I developed a chunking enhancement for WiFiManager, which you can get from branch Chunking in the repo https://github.com/timr49/WiFiManager It is described in https://github.com/timr49/WiFiManager/blob/Chunking/PAGE.md
Author
Owner

@tablatronix commented on GitHub (Jun 29, 2025):

I have a test branch for this and didnt get very far with testing it, Ill take a look at what you have created

<!-- gh-comment-id:3016850725 --> @tablatronix commented on GitHub (Jun 29, 2025): I have a test branch for this and didnt get very far with testing it, Ill take a look at what you have created
Author
Owner

@timr49 commented on GitHub (Jun 30, 2025):

I have a test branch for this and didnt get very far with testing it, Ill take a look at what you have created

Thanks, @tablatronix . I look forward to your feedback.

<!-- gh-comment-id:3018530633 --> @timr49 commented on GitHub (Jun 30, 2025): > I have a test branch for this and didnt get very far with testing it, Ill take a look at what you have created Thanks, @tablatronix . I look forward to your feedback.
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#1409
No description provided.