Comments (7)
Just implemented the code. It is available in the PR #18
Captive portal support, so you don't have to type in 192.168.4.1 in your browser again when you try to setup your device. Tested on OSX and iOS.
Ensure to call iot.dnsServer.processNextRequest(); periodically in your loop() block.
from basecamp.
I'm currently evaluating @TOLDOTECHNIK s PR. Since the DNSServer.h needed by the CaptivePortal has been added to the ESP32 Core for Arduino just 4 days ago I will to make the CaptivePortal-code optional for now. So people won't have failing projects.
from basecamp.
@TOLDOTECHNIK I've merged #18 but the portal doesn't work for me on Android, iOS or Linux. This might be a problem with the Core, because the provided example CaptivePortal.ino doesn't work either. Nonetheless I merged your code. Thank you for your support.
from basecamp.
Making it optional is a very good idea. We made the tests with the newest core. One issue we discovered with an older core, is, the ESP32 gets a new IP over and over again when obtaining one from a FRITZ!Box. This issue has been gone since updating.
from basecamp.
I've updated before testing the PR, but I will test it some more
from basecamp.
Did you use the DNS update statement in your loop()?
iot.dnsServer.processNextRequest();
from basecamp.
I did.
It seems there are still issues with the DNSServer:
espressif/arduino-esp32#1011
from basecamp.
Related Issues (20)
- Unstable OTA HOT 2
- findEndHeader off-by-one-error?
- Text Input for an e-paper door sign
- Guru Meditation Error: Core 0 panic'ed (LoadProhibited) HOT 4
- Boolean value inconsistencies in the configuration
- WLan Accesspoint HOT 2
- Externer Broker nicht erreichbar
- No Reconnect after MQTT Broker restart HOT 2
- multiple definition of `JSON_MIMETYPE' HOT 5
- ESP doesn't wake anymore
- Auf 192.168.4.1 wird Folgendes angezeigt Configuration could not be saved HOT 1
- Fix issues with ArduinoJSON 6.X
- Factory reset was forced nach Power off HOT 1
- Fehler beim Kompilieren von Basecamp mit Beispielsketch und Asynctcp.h HOT 6
- Basecamp stoppt vor doorsensor HOT 1
- Frequent MQTT posts, stopped MQTT connection, and task watchdog crashes on CPU0
- Standardwerte für hinzugefügte Elemente setzen
- OTA problem
- Accesspoint-Modus aktivieren (mit PW)
- Fehler beim Kompilieren HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basecamp.