-
Notifications
You must be signed in to change notification settings - Fork 131
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 example #97
Comments
Could you try #99 and check if that works for you? I had the same issue with a lot of guru meditation, but that seems to be caused by the way the DHCP server is implemented in the AP mode for Arduino. It seems to store configuration in the non-volatile flash partition, which then causes the reboot shortly after a client connects. So in case you face that issue, maybe just try erasing the whole flash and then uploading a clean sketch. Limitations of the example are described in the PR, but the basic functionality works. You might need to turn off mobile data when you're connected to the AP, I'm not sure if that can be circumvented. |
Wow, thank you! I've actually also managed to get it to work at the same time. The trick that worked for me was: DNS as per the examples -> create a http server too, which captures root -> index.html on non-https server forwards to https server using a I'll look into your solution (it's probably less of a round-about way) and implement that instead. |
Looking at your code it seems you did the same thing that I stubled upon: adding an insecure http server step solves the problem. I tried running your code, but it didn't work.
This is in the serial output:
I disabled the The server does seem to turn A small typo in the example code: Here is my working messy code:
|
Is your feature request related to a problem? Please describe.
Thank you for the many wonderul examples, they have helped a lot. But one thing I have not been able to get working is turning the EP32 into a hotspot that also redirects users to the website that it's hosting. I would like users to be able to connect to the ESP's wifi hotspot, and that the browser would then automatically show the website that it's hosting. No login is required.
I tried to get this to work by combining examples I found with this code. However, when I enables a local DNS host, it always resulted in 'guru meditation' error. This must be my own user error. But after trying to get it to work for a few hours, and feeling that I may not be the first to try and use an ESP32 this way, I thought I'd ask for any tips, suggestions, or perhaps even an example.
Describe the solution you'd like
Advice would be welcome. An example would be amazing. I would be happy to help develop an example and then share it as part of the exampes of this addon.
Describe alternatives you've considered
I spent a lot of time trying to make it work myself, but my skill level is probably not high enough.
Additional context
It's for an art project. The idea is that people who visit an exhibit can control a water fountain themselves by connecting to the device's hotspot with their mobile phone, and then automatically being guided to the website on it. Then they can control the fountain themselves.
The text was updated successfully, but these errors were encountered: