Hi
I was trying to get the sample code for RN171 working but I did not succeed.
So I made my own implementation of the http server. What works is getting the request. If I try to request an html page from my browser RN171 perfectly establishes a connection and gets the request (OPENGET /index.html …)
The problem seems to be the response:
When I try
string response = "HTTP/1.1 200 OK\n" +
"Date: Sun, 18 Oct 2009 08:56:53 GMT\n" +
"Server: Apache/2.2.14 (Win32)\n" +
"Last-Modified: Sat, 20 Nov 2004 07:16:26 GMT\n" +
"ETag: \"10000000565a5-2c-3e94b66c2e680\"\n" +
"Accept-Ranges: bytes\n" +
"Content-Length: 44\n" +
"Connection: close\n" +
"Content-Type: text/html\n" +
"X-Pad: avoid browser bug\n" +
"\n" +
"<html><body><h1>It works!</h1></body></html>\n";
wifi.Send(ref response);
It just does nothing (also no exception) and my Browser waits forever.
First I was thinking about a wrong baudrate (because some guys mentioned this here). But for me this doesn’t make sense, because I get the request. So communication between the boards is working. (I even tried to set baudrate to 9600 and the result was I wasn’t getting requests anymore, so the baudrate of 115200 is correct).
Does anyone have some suggestions for me?
I really start to get crazy with this Gadgeteer platform. Every time I get something to run another thing appears that just should work but doesn’t.