Question
Custom socket usage
Posted on April 29, 2015 at 09:26
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 clientI 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/htmlersion as in GETContent-length:15htmlersion as in GETntent-length:15htmlersion as in GET<html>_|_<html>15htmlersion as in GET[1A][1A][1A]''Am I doing something wrong? And where can I find the documentation on sockets?Regards,Hector