I'm using the standard example code SimpleWebServerWifi.
The board does connect to my wifi and I can use my browser to connect the the board to confirm that it is working fine.
This is the serial monitor response:
new client
GET / HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-US
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: 192.168.1.76
Connection: Keep-Alive
client disonnected
The problem I'm having is when I try to connect with my Android browser. It works a couple times, but most of the times it doesn't work.
I have a Galaxy 6 Edge+.
This is what I get when connecting with my phone:
new client
So, something is going on with the connection and to troubleshoot, I implemented a connection timeout.
if (millis()-client_timeout>2000) client.stop();
Now, my connection gets disconnected instead of kept waiting from data.
new client
client disonnected
So, I went ahead and checked for client.available() and that's where I'm having the issue.
It is always 0 when the issue happens.
Does anyone have any insight on why this could happen?