[GH-ISSUE #686] How to use WiFi Manager without the captive portal? #573

Open
opened 2026-02-28 01:25:55 +03:00 by kerem · 13 comments
Owner

Originally created by @sabersingh on GitHub (Aug 4, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/686

Hi there,
I want to use the WiFi manager to change the wifi credentials of my ESP device but without using the Captive portal, I want the user to configure the WiFi settings either from my app or from a web interface on the mDNS address(I don't want the captive portal to pop-up). If I can change the wifi credentials only by using the HTTP request then It should supposedly work for me.
PLEASE SOMEBODY HELP ME OUT ASAP, I HAVE A PROJECT TO SUBMIT. PLEASE!
Thanks in advance

Originally created by @sabersingh on GitHub (Aug 4, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/686 Hi there, I want to use the WiFi manager to change the wifi credentials of my ESP device but without using the Captive portal, I want the user to configure the WiFi settings either from my app or from a web interface on the mDNS address(I don't want the captive portal to pop-up). If I can change the wifi credentials only by using the HTTP request then It should supposedly work for me. **PLEASE SOMEBODY HELP ME OUT ASAP, I HAVE A PROJECT TO SUBMIT. PLEASE!** Thanks in advance
Author
Owner

@tablatronix commented on GitHub (Aug 4, 2018):

Well you can disable captiveportal, and start ondemand webportal in development version

<!-- gh-comment-id:410481508 --> @tablatronix commented on GitHub (Aug 4, 2018): Well you can disable captiveportal, and start ondemand webportal in development version
Author
Owner

@sabersingh commented on GitHub (Aug 4, 2018):

Hi @tablatronix
Thanks for such a quick reply. Actually I am currently in a very depressed state of mind and this project is very important for me, so please it would be of great help if you could put some light on it and briefly explain how exactly is that supposed to be done.
Thank you so very much once again for understanding.

<!-- gh-comment-id:410481857 --> @sabersingh commented on GitHub (Aug 4, 2018): Hi @tablatronix Thanks for such a quick reply. Actually I am currently in a very depressed state of mind and this project is very important for me, so please it would be of great help if you could put some light on it and briefly explain how exactly is that supposed to be done. Thank you so very much once again for understanding.
Author
Owner

@sabersingh commented on GitHub (Aug 4, 2018):

So while scrolling through some examples I was just wondering if just exclude the DNSserver part will it solve the part problem of disabling the captive portal? Also is there a way to simply remove the web interface and keep features of WiFi manager limited to HTTP requests?

<!-- gh-comment-id:410482785 --> @sabersingh commented on GitHub (Aug 4, 2018): So while scrolling through some examples I was just wondering if just exclude the DNSserver part will it solve the part problem of disabling the captive portal? Also is there a way to simply remove the web interface and keep features of WiFi manager limited to HTTP requests?
Author
Owner

@tablatronix commented on GitHub (Aug 7, 2018):

I have no idea what you are trying to do, #461

<!-- gh-comment-id:411153940 --> @tablatronix commented on GitHub (Aug 7, 2018): I have no idea what you are trying to do, #461
Author
Owner

@sabersingh commented on GitHub (Aug 7, 2018):

@tablatronix I just want to connect to/Change WiFi credentials at runtime using my app or from a touch display that I have on board my Device, but I don't want Web interface/ Captive portal to show up. Just use the HTTP requests and connect to the WiFi

<!-- gh-comment-id:411160805 --> @sabersingh commented on GitHub (Aug 7, 2018): @tablatronix I just want to connect to/Change WiFi credentials at runtime using my app or from a touch display that I have on board my Device, but I don't want Web interface/ Captive portal to show up. Just use the HTTP requests and connect to the WiFi
Author
Owner

@tablatronix commented on GitHub (Aug 8, 2018):

    //if false, disable captive portal redirection
    void          setCaptivePortalEnable(boolean enabled);

development

<!-- gh-comment-id:411401334 --> @tablatronix commented on GitHub (Aug 8, 2018): ```cpp //if false, disable captive portal redirection void setCaptivePortalEnable(boolean enabled); ``` development
Author
Owner

@sabersingh commented on GitHub (Aug 8, 2018):

Oh! thanks Shawn, That was pretty neat! also what If I want to change the WiFi credentials during runtime only by using the hardware side, In simple words, I have a TFT display using which I want to change the WiFi credentials programatically, is it possible?

<!-- gh-comment-id:411414786 --> @sabersingh commented on GitHub (Aug 8, 2018): Oh! thanks Shawn, That was pretty neat! also what If I want to change the WiFi credentials during runtime only by using the hardware side, In simple words, I have a TFT display using which I want to change the WiFi credentials programatically, is it possible?
Author
Owner

@tablatronix commented on GitHub (Aug 8, 2018):

I see no need to use wifimanager for that, just use esp begin(ssid,pass)

<!-- gh-comment-id:411428435 --> @tablatronix commented on GitHub (Aug 8, 2018): I see no need to use wifimanager for that, just use esp begin(ssid,pass)
Author
Owner

@sabersingh commented on GitHub (Aug 8, 2018):

I tried using esp begin function but it only works for the very first time when I reset the device but it wont work during the runtime.

<!-- gh-comment-id:411446246 --> @sabersingh commented on GitHub (Aug 8, 2018): I tried using esp begin function but it only works for the very first time when I reset the device but it wont work during the runtime.
Author
Owner

@tablatronix commented on GitHub (Aug 8, 2018):

you might have to disconnect first

<!-- gh-comment-id:411446976 --> @tablatronix commented on GitHub (Aug 8, 2018): you might have to disconnect first
Author
Owner

@sabersingh commented on GitHub (Aug 8, 2018):

Oh I see.. can you please share some example?

<!-- gh-comment-id:411448357 --> @sabersingh commented on GitHub (Aug 8, 2018): Oh I see.. can you please share some example?
Author
Owner

@tablatronix commented on GitHub (Aug 8, 2018):

WiFi.disconnect();

<!-- gh-comment-id:411457502 --> @tablatronix commented on GitHub (Aug 8, 2018): WiFi.disconnect();
Author
Owner

@sabersingh commented on GitHub (Aug 8, 2018):

Thank you so very much @tablatronix for helping and for all the assistance.

<!-- gh-comment-id:411515446 --> @sabersingh commented on GitHub (Aug 8, 2018): Thank you so very much @tablatronix for helping and for all the assistance.
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#573
No description provided.