-->
Page 1 of 1

esp is dropping carriage return-and there is nothing to do!

PostPosted: Wed Oct 14, 2015 3:43 pm
by rant
Trying to set the module as a local server, and connect to it , to send/receive data .

What happens is that i manage to connect to the module ,and send him data, but when i try to send respond from the module, i can see that all the \r\n are not appears in the sent data (hence my iPhone cant get the message back).

The only option i saw is to set it in transparent mode, but int this mode , CIPSERVER must be 0 . if its 0 , you cant connect with the module on the local wifi...


Code: Select allAT


OK
AT+CIPMUX=1


OK
AT+CWMODE=3


OK
AT+CIPSERVER=1,80


OK
AT+CWSAP="said","mypass",5,2


OK



then

String respond = "HTTP/1.1 200 OK\r\n Content-Type: text/html\r\n Connection: close\r\nRefresh: 300\r\n";

turns to

HTTP/1.1 200 OK Content-Type: text/html Connection: close Refresh: 300


Is there a bug that i haven't found yet in this stupid module that made my life a hell ???
Am i the only one that tried to base a company on this, and just find himself lost ???

Re: esp is dropping carriage return-and there is nothing to

PostPosted: Wed Oct 14, 2015 4:21 pm
by Barnabybear
Hi, are you sure you need \r\n and not just \n.

Re: esp is dropping carriage return-and there is nothing to

PostPosted: Thu Oct 15, 2015 1:23 am
by rant
Yes i am sure. any respond needs them . Whats happen is that the respond never received by the iPhone because there is no "\r"

Can any logic person, tell me why the hell this company is changing my request ?? is there a single reasonable explanation ??