esp is dropping carriage return-and there is nothing to do!
Posted: Wed Oct 14, 2015 3:43 pm
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...
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 ???
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 all
AT
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 ???