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

Question: Is there a way to detect if the WiFi connection is successful before the config portal closes? #1732

Open
ateker01 opened this issue Apr 6, 2024 · 1 comment

Comments

@ateker01
Copy link

ateker01 commented Apr 6, 2024

I have an app that tries to detect if the connection is successful after the password is saved. Basically,

ESP8266 starts the ondemand config portal
When user enters the password and hits the "save" button the URL changes to 192.168.4.1/wifisave
At that point my app understands that the password was entered

if the password is correct, the config portal closes
if the password is incorrect, the config portal restarts

is there way for the app to detect if 8266 was able to connect to the wifi before config portal closes? for example if the URL has changed to 192.168.4.1/wifisucess or wififailed, the app could detect it.

@real-bombinho
Copy link

Did you find a solution?

If the portal closes successfully then ESP should have migrated to the new network and you are unlikely to get a response from 192.168.4.1 unless by accident this is the new IP too.

Your app would need to identify the new IP of the ESP. You might need to add a way to ping your app from the ESP after reconnection.

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

No branches or pull requests

2 participants