djsfantasi
- Joined Apr 11, 2010
- 9,237
I agree. But the sketch is NOT correctly performing as a web server.
I can tell where one problem lies because your browser says "192.168.0.23 did not return any data"
The sketch has several lines where it sends a "standard http response header". But your browser is saying it never gets it.
That's why I suggested inserting the serial print to indicate on the console that it is trying to send the response.
The other thing I thought of is related to the IP address. Where did you get 192.168.0.23? I haven't used the WiFi shield, but am certified in networking. If the shield gets its address with DHCP, it can change over time. I did not see a call to either set or get the IP address, hence my question.
I can tell where one problem lies because your browser says "192.168.0.23 did not return any data"
The sketch has several lines where it sends a "standard http response header". But your browser is saying it never gets it.
That's why I suggested inserting the serial print to indicate on the console that it is trying to send the response.
The other thing I thought of is related to the IP address. Where did you get 192.168.0.23? I haven't used the WiFi shield, but am certified in networking. If the shield gets its address with DHCP, it can change over time. I did not see a call to either set or get the IP address, hence my question.