-->
Page 13 of 15

Re: Captive Portal or force all webcalls to ESP8266 AP IP ad

PostPosted: Wed Apr 13, 2016 10:16 pm
by bbx10node
I copied the latest swicago demo into a new Arduino sketch and save it as swicago.ino. It works fine. I did not copy dnsserver.cpp and dnsserver.h because the newest versions are included with the ESP8266 board package.

To learn more about DNS server, there are 3 DNS server examples included with the board package. In the IDE see File -> Examples -> DNSServer.

I do not think in softAP mode, the ESP8266 can connect to the Internet. It would have to act as STA and AP at the same time which is not possible. But I would love to hear I am wrong.

WiFi Manager use captive portal mode to configure the SSID and password, then reboot into normal mode to access the Internet. If WM cannot access the AP (SSID and password wrong or the device has moved too far from the AP), it goes back to captive mode so the user can enter a different SSID and password.

viewtopic.php?f=152&t=8705&p=42991&hilit=wifi+manager#p42991

Re: Captive Portal or force all webcalls to ESP8266 AP IP ad

PostPosted: Thu Apr 14, 2016 7:52 am
by martinayotte
bbx10node wrote:I do not think in softAP mode, the ESP8266 can connect to the Internet. It would have to act as STA and AP at the same time which is not possible. But I would love to hear I am wrong.

By definition softAP is STA+AP, so, while servicing the AP, the ESP can be itself an STA of another router, therefore the Internet. That's also why the ESP has 2 different IPAddr. Of course, the clients of the ESP AP won't have access to internet, but this is another thing, it is simply that ESP network layer doesn't have IP forwarding.

Re: Captive Portal or force all webcalls to ESP8266 AP IP ad

PostPosted: Tue Apr 26, 2016 2:10 pm
by Bill A
I like it it works great! thanks for posting it. I have a question about the HTML. I have been trying to figure out how to add to it wondering if you used a text editor? I tried to import it into a regular one but it doesnt like the coding it has.

Re: Captive Portal or force all webcalls to ESP8266 AP IP ad

PostPosted: Wed May 04, 2016 9:15 am
by dark_
Hi, first, thank you very much for so much help in this forum. I took borrowed this scketch and has served me very helpful but could someone say how you can put that pressing on and send the signal at the gpio departure, send an 0 automatically, so instead of 4 buttons for both outputs, you could use 2 only and the button itself had two options. thank you very much, it would be helpful if someone help me