mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1732] Question: Is there a way to detect if the WiFi connection is successful before the config portal closes? #1470
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1470
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ateker01 on GitHub (Apr 6, 2024).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1732
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 commented on GitHub (Apr 28, 2024):
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.