Hi, i have an acces point into an ESP8266 with server in port80, using Taifun extension to seacrh acces point available. When i try to connect to ESP , afterwifinegotietion was true BUT when i check into phone settings wifi, i dont have an IP asigned.
But, when i connect to the same accesspoint manually an android(6.0) pop-up a warning message about that wifi do not have internet connection, when i choose OK all fine, i receive an IP and can navigate into my ESP8266.
I just tested this on my Android 8 device using the wifi test project downloadable from here https://puravidaapps.com/wifi.php and can’t see any issues
I tested like this after starting the wifi test project
enable Wifi
connect to a SSID (I removed the network cable from my router , so there is no internet…)
after a while I get the message “WiFi negotiation was successful”
“get SSID” shows the ssid of the router
“get local IP” shows 192.168.0.111 (a valid local ip address)
you might want to try the same tests… also you might want to try another device to find out, if it is an Android version specific issue
Hi, i do but seems not work.
The shell extension do not return any info about success or fail
And the exclamation alert is show it
I’ll try to use your extension again(instead an activitystarter wifi connection) and check for an IP, if not assigned i´ll display a warning message telling the user that must confirm the Android warning message.
Into my captive portal (into ESP8266) i´ve an DNS server, and of course an FileNotFound function that returns the 404 code.
Keeping in mind that the Android check service try to get an 204 code when it try to get URI /generate_204 I returning that code for only this query and magic is done !
The network is recognized like a full internet wifi connection.
Its clear that this solution in only valid when you can manage the DNS
For most IOT device implementation this look great.
Hi, sorry by the delay.
Instead answer an 404 code, answer an 204 code when your server receive /generate_204 URI query from android device.
In my case i´m working with an arduino board, so I modify the captive portal example