Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Captive portal #25

Closed
remcoNL opened this issue Sep 12, 2018 · 12 comments
Closed

Captive portal #25

remcoNL opened this issue Sep 12, 2018 · 12 comments

Comments

@remcoNL
Copy link

remcoNL commented Sep 12, 2018

Is it possible to add a captive portal to the ESPUI interface?

@s00500
Copy link
Owner

s00500 commented Oct 28, 2018

Yes I definitely should do that

@s00500 s00500 changed the title wish list: captive portal Captive portal Oct 28, 2018
s00500 added a commit that referenced this issue Nov 26, 2018
@s00500 s00500 closed this as completed in 870e8a0 Nov 26, 2018
@nosoropoped
Copy link

nosoropoped commented Jun 2, 2020

this example don't work https://github.com/s00500/ESPUI/tree/870e8a06a27c02074ccee4b0fec8b6a452ac3eb3/examples
error: invalid conversion from 'void ()(Control, int)' to 'void ()(Control*, int)' [-fpermissive]

the sketch above in arduino 1.8.12 and in earlier versions does not work, please help

@s00500
Copy link
Owner

s00500 commented Jun 2, 2020

What processor are you using ? esp32 or esp8266 ?

@nosoropoped
Copy link

esp8266, Node MCU v3

@s00500
Copy link
Owner

s00500 commented Jun 8, 2020

Not really sure why you are using such an old version of the examples, make sure you are using the latest version of the libraries and the examples ! https://github.com/s00500/ESPUI/tree/master/examples

@nosoropoped
Copy link

I tried these examples, and tried again, but the connection to the page occurs only when entering the IP address manually (you have 192.168.1.1). Unfortunately, using captive portal does not work for me yet. When connecting to the ESP8266, nothing happens, the redirection of any request does not work, and there is no pop-up window with authentication on the phone.
Your library is great and I would really appreciate your help.
P.S. All necessary libraries are installed.
thank

@s00500
Copy link
Owner

s00500 commented Jun 14, 2020

Ok, so this is not an easy to fix thing... and also not a issue of this library per se...
See the discussion here:
espressif/arduino-esp32#1037

It hugely depends what OS you are using and how the captive portal is handled there.

Meanwhile opening the browser and opening any http:// address should work (No https!)
Try for example: http://captive.apple.com

Otherwise you can play with the captive portal examples included in the ESP8266 arduino core and try to figure out what works for you...

@nosoropoped
Copy link

nosoropoped commented Jun 15, 2020

yes, if you enter the html address exactly - everything works, but there is no pop-up window asking for pseudo-authentication. everything works well with the ESP8266WebServer library. I will try, thank you very much. Arduino IDE. Win10

@nosoropoped
Copy link

Oh, it didn't work out for me (and not only for me) to launch the captive portal, I tried different versions of the IDE arduino, different boards: 8266, 32, but despite the DNS library, it is only easy to enter the page using manual input. Used examples from your library. Tell me what could be the problem. Thank you!

@s00500
Copy link
Owner

s00500 commented Apr 9, 2021

So... The problem might be the following: Captive portals in ios and android will only show up if all traffic is properly answered with a HTTP redirect. So even tough the dns server points traffic to the ESP you devices will still not show a popup as they do not get the correct redirect message back from the server... this could be implemented easily but I do not have time for it right now, prs are welcome

@nosoropoped
Copy link

Thank you, I will be very grateful if you can take the time to help. Your library is very popular in narrow circles.

@blackpressinc
Copy link

I was wondering if there was any update on this issue? I recently implimented a captive portal for ESPUI and it works on Android but does not seem to pop up on iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants