[GH-ISSUE #594] "Configure WiFi"-button is shown multiple times (ESP32) #498

Closed
opened 2026-02-28 01:25:35 +03:00 by kerem · 4 comments
Owner

Originally created by @Curclamas on GitHub (Apr 19, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/594

Basic Infos

Hardware

WiFimanager Branch/Release: Development

Esp32 (rev0)

Hardware: ESP32 DevKitC

Core Version: 2.4.0, staging

Description

When viewing root URL of captive protal in browser, "Configure WiFi"-button is shown multiple times. (find generated HTML and screenshot below)

Settings in IDE

Module: ESP32 DevKitC

Additional libraries:

Sketch

#include <WiFiManager.h>

void setup() {
    Serial.begin(115200);
    WiFiManager wifiManager;
    wifiManager.autoConnect("AutoConnectAP");
    Serial.println("connected...yeey :)");
}

void loop() {}

Debug Messages

*WM: <- HTTP Root 
*WM: -> 192.168.4.1 

Generated HTML


  | <!DOCTYPE html><html lang='en'><head><meta name='format-detection' content='telephone=no'><meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no'/><title>options</title><script>function c(l){document.getElementById('s').value=l.innerText\|\|l.textContent;document.getElementById('p').focus();}</script><style>.c,body{text-align:center;font-family:verdana}div,input{padding:5px;font-size:1em}input{width:95%;margin:5px 0}button{cursor:pointer;border:0;border-radius:.3rem;background-color:#1fa3ec;color:#fff;line-height:2.4rem;font-size:1.2rem;width:100%}.wrap {text-align:left;display:inline-block;min-width:260px}a{color:#000;font-weight:700;text-decoration:none}a:hover{color:#1fa3ec;text-decoration:underline}.q{height:16px;margin:0;padding:0 5px;text-align:right;min-width:38px;float:right}.q.q-0:after{background-position-x:0}.q.q-1:after{background-position-x:-16px}.q.q-2:after{background-position-x:-32px}.q.q-3:after{background-position-x:-48px}.q.q-4:after{background-position-x:-64px}.q.l:before{background-position-x:-80px;padding-right:5px}.ql .q{float:left}.qinv .q{-webkit-filter:invert(1);filter:invert(1)}.q:after,.q:before{content:'';width:16px;height:16px;display:inline-block;background-repeat:no-repeat;background-position: 16px 0;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAQCAMAAADeZIrLAAAAJFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADHJj5lAAAAC3RSTlMAIjN3iJmqu8zd7vF8pzcAAABsSURBVHja7Y1BCsAwCASNSVo3/v+/BUEiXnIoXkoX5jAQMxTHzK9cVSnvDxwD8bFx8PhZ9q8FmghXBhqA1faxk92PsxvRc2CCCFdhQCbRkLoAQ3q/wWUBqG35ZxtVzW4Ed6LngPyBU2CobdIDQ5oPWI5nCUwAAAAASUVORK5CYII=');}@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){.q:before,.q:after {background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALwAAAAgCAMAAACfM+KhAAAALVBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAOrOgAAAADnRSTlMAESIzRGZ3iJmqu8zd7gKjCLQAAACmSURBVHgB7dDBCoMwEEXRmKlVY3L//3NLhyzqIqSUggy8uxnhCR5Mo8xLt+14aZ7wwgsvvPA/ofv9+44334UXXngvb6XsFhO/VoC2RsSv9J7x8BnYLW+AjT56ud/uePMdb7IP8Bsc/e7h8Cfk912ghsNXWPpDC4hvN+D1560A1QPORyh84VKLjjdvfPFm++i9EWq0348XXnjhhT+4dIbCW+WjZim9AKk4UZMnnCEuAAAAAElFTkSuQmCC');background-size: 95px 16px;}}.msg{padding:20px;margin:20px 0;border:1px solid #eee;border-left-width:5px;border-radius:3px;border-left-color:#777}.msg h4{margin-top:0;margin-bottom:5px}.msg.P{border-left-color:#1fa3ec}.msg.P h4{color:#1fa3ec}.msg.D{border-left-color:#d9534f}.msg.D h4{color:#d9534f}dt{font-weight:bold}dd{margin:0;padding:0 0 0.5em 0;min-height:12px}td{vertical-align: top;}.h{display:none}button.D{background-color:#d9534f}</style></head><body><div class='wrap'><h1>AutoConnectAP</h1><h3>WiFiManager</h3><form action='/wifi'    method='GET'><button>Configure WiFi</button></form><br/>
-- | --
  | <form action='/info'    method='GET'><button>Info</button></form><br/>
  | <form action='/exit'    method='GET'><button>Quit</button></form><form action='/wifi'    method='GET'><button>Configure WiFi</button></form><br/>
  | <form action='/wifi'    method='GET'><button>Configure WiFi</button></form><br/>
  | <form action='/wifi'    method='GET'><button>Configure WiFi</button></form><br/>
  | <form action='/wifi'    method='GET'><button>Configure WiFi</button></form><br/>
  | <form action='/wifi'    method='GET'><button>Configure WiFi</button></form><br/>
  | <form action='/wifi'    method='GET'><button>Configure WiFi</button></form><br/>
  | <form action='/wifi'    method='GET'><button>Configure WiFi</button></form><br/>
  | <div class='msg'>No AP set</div></div></body></html>

Screenshot

image

Originally created by @Curclamas on GitHub (Apr 19, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/594 ### Basic Infos #### Hardware WiFimanager Branch/Release: Development Esp32 (rev0) Hardware: ESP32 DevKitC Core Version: 2.4.0, staging ### Description When viewing root URL of captive protal in browser, "Configure WiFi"-button is shown multiple times. (find generated HTML and screenshot below) ### Settings in IDE Module: ESP32 DevKitC Additional libraries: ### Sketch ```cpp #include <WiFiManager.h> void setup() { Serial.begin(115200); WiFiManager wifiManager; wifiManager.autoConnect("AutoConnectAP"); Serial.println("connected...yeey :)"); } void loop() {} ``` ### Debug Messages ``` *WM: <- HTTP Root *WM: -> 192.168.4.1 ``` ### Generated HTML ```html   | <!DOCTYPE html><html lang='en'><head><meta name='format-detection' content='telephone=no'><meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no'/><title>options</title><script>function c(l){document.getElementById('s').value=l.innerText\|\|l.textContent;document.getElementById('p').focus();}</script><style>.c,body{text-align:center;font-family:verdana}div,input{padding:5px;font-size:1em}input{width:95%;margin:5px 0}button{cursor:pointer;border:0;border-radius:.3rem;background-color:#1fa3ec;color:#fff;line-height:2.4rem;font-size:1.2rem;width:100%}.wrap {text-align:left;display:inline-block;min-width:260px}a{color:#000;font-weight:700;text-decoration:none}a:hover{color:#1fa3ec;text-decoration:underline}.q{height:16px;margin:0;padding:0 5px;text-align:right;min-width:38px;float:right}.q.q-0:after{background-position-x:0}.q.q-1:after{background-position-x:-16px}.q.q-2:after{background-position-x:-32px}.q.q-3:after{background-position-x:-48px}.q.q-4:after{background-position-x:-64px}.q.l:before{background-position-x:-80px;padding-right:5px}.ql .q{float:left}.qinv .q{-webkit-filter:invert(1);filter:invert(1)}.q:after,.q:before{content:'';width:16px;height:16px;display:inline-block;background-repeat:no-repeat;background-position: 16px 0;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAAAQCAMAAADeZIrLAAAAJFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADHJj5lAAAAC3RSTlMAIjN3iJmqu8zd7vF8pzcAAABsSURBVHja7Y1BCsAwCASNSVo3/v+/BUEiXnIoXkoX5jAQMxTHzK9cVSnvDxwD8bFx8PhZ9q8FmghXBhqA1faxk92PsxvRc2CCCFdhQCbRkLoAQ3q/wWUBqG35ZxtVzW4Ed6LngPyBU2CobdIDQ5oPWI5nCUwAAAAASUVORK5CYII=');}@media (-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi){.q:before,.q:after {background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALwAAAAgCAMAAACfM+KhAAAALVBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAOrOgAAAADnRSTlMAESIzRGZ3iJmqu8zd7gKjCLQAAACmSURBVHgB7dDBCoMwEEXRmKlVY3L//3NLhyzqIqSUggy8uxnhCR5Mo8xLt+14aZ7wwgsvvPA/ofv9+44334UXXngvb6XsFhO/VoC2RsSv9J7x8BnYLW+AjT56ud/uePMdb7IP8Bsc/e7h8Cfk912ghsNXWPpDC4hvN+D1560A1QPORyh84VKLjjdvfPFm++i9EWq0348XXnjhhT+4dIbCW+WjZim9AKk4UZMnnCEuAAAAAElFTkSuQmCC');background-size: 95px 16px;}}.msg{padding:20px;margin:20px 0;border:1px solid #eee;border-left-width:5px;border-radius:3px;border-left-color:#777}.msg h4{margin-top:0;margin-bottom:5px}.msg.P{border-left-color:#1fa3ec}.msg.P h4{color:#1fa3ec}.msg.D{border-left-color:#d9534f}.msg.D h4{color:#d9534f}dt{font-weight:bold}dd{margin:0;padding:0 0 0.5em 0;min-height:12px}td{vertical-align: top;}.h{display:none}button.D{background-color:#d9534f}</style></head><body><div class='wrap'><h1>AutoConnectAP</h1><h3>WiFiManager</h3><form action='/wifi' method='GET'><button>Configure WiFi</button></form><br/> -- | --   | <form action='/info' method='GET'><button>Info</button></form><br/>   | <form action='/exit' method='GET'><button>Quit</button></form><form action='/wifi' method='GET'><button>Configure WiFi</button></form><br/>   | <form action='/wifi' method='GET'><button>Configure WiFi</button></form><br/>   | <form action='/wifi' method='GET'><button>Configure WiFi</button></form><br/>   | <form action='/wifi' method='GET'><button>Configure WiFi</button></form><br/>   | <form action='/wifi' method='GET'><button>Configure WiFi</button></form><br/>   | <form action='/wifi' method='GET'><button>Configure WiFi</button></form><br/>   | <form action='/wifi' method='GET'><button>Configure WiFi</button></form><br/>   | <div class='msg'>No AP set</div></div></body></html> ``` ### Screenshot ![image](https://user-images.githubusercontent.com/3130187/38997167-1f5dad9c-43ed-11e8-924e-b6345a6486da.png)
kerem 2026-02-28 01:25:35 +03:00
Author
Owner

@tablatronix commented on GitHub (Apr 19, 2018):

when was the last time you pulled?

<!-- gh-comment-id:382914705 --> @tablatronix commented on GitHub (Apr 19, 2018): when was the last time you pulled?
Author
Owner

@tablatronix commented on GitHub (Apr 20, 2018):

maybe pull and try again, I made some changes, added some debugging, I do not see this, are you doing anything not in your sketch example ?

<!-- gh-comment-id:382918514 --> @tablatronix commented on GitHub (Apr 20, 2018): maybe pull and try again, I made some changes, added some debugging, I do not see this, are you doing anything not in your sketch example ?
Author
Owner

@Curclamas commented on GitHub (Apr 20, 2018):

@tablatronix thanks for the pull hint! I indeed somehow ended up with an old version. Pulled again and now it works fine. Therefor I am closing the issue.

<!-- gh-comment-id:383087189 --> @Curclamas commented on GitHub (Apr 20, 2018): @tablatronix thanks for the pull hint! I indeed somehow ended up with an old version. Pulled again and now it works fine. Therefor I am closing the issue.
Author
Owner

@tablatronix commented on GitHub (Apr 20, 2018):

yeah I remembered at some point that was broken for a bit

<!-- gh-comment-id:383090349 --> @tablatronix commented on GitHub (Apr 20, 2018): yeah I remembered at some point that was broken for a bit
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#498
No description provided.