AnsweredAssumed Answered

Custom socket usage

Question asked by pharam.hector on Apr 29, 2015
Latest reply on Apr 29, 2015 by Gerardo Gallucci
Hi,

I'm trying to use custom socket with two SPWF01SA, but I'm having some troubles:
-I can't find the documentation, to know how it works exactly
-I have a creepy behavior once I try to send data from server to client

I have disabled the standard HTTP socket on port 80 (TCP) and I have set up my own on the same port. Then the server waits the WIND:61 indication (incoming socket) to send the following text through the UART:
 "HTTP/1.1 200 OK  - HTTP version as in GET\r\n"
"Content-type: text/html\r\n"
"Content-length:15\r\n"
"\r\n"
"<html>_|_<html>"

I use the other  SPWF01SA as a client and after a wi-fi association I use "AT+S.HTTPGET=172.20.146.1,/index.html\r" expecting the previous text, but instead I receive:

"t-type: text/html
ersion as in GET
Content-length:15
html
ersion as in GET


ntent-length:15
html
ersion as in GET
<html>_|_<html>15
html
ersion as in GET


[1A][1A][1A]"

Am I doing something wrong? And where can I find the documentation on sockets?

Regards,

Hector


Outcomes