Chat freely about anything...

User avatar
By jqdoumen
#9413 Athena, thx for your help ... I really appreciate your effort !

I've made sure the ctrl-lfs are there, both through the serial interface and the code, still it behaves erratically. Sometimes it seems to work, but most of the time it doesn't. I also have the impression the module is resetting itself quite often after sending a command.

To facilitate the debugging, I'm including the code I'm using, showing the usage of the \r\n ...

String POST = "GET / \r\n";
POST += "User-Agent: Curl/7.37.0 \r\n";
POST += "Host: 192.168.1.100 \r\n";
POST += "Accept: */* \r\n";
POST += "\r\n";
esp8266.println("AT+CIPSTART=\"TCP\",\"192.168.1.100\",80");
esp8266.print("AT+CIPSEND=");
esp8266.println(POST.length());
esp8266.println(POST);
esp8266.println("AT+CIPCLOSE");

(I've removed the code capturing the returns ...)

What I get back now is

... send posting
Received string :
***Start***
AT+CIPSEND=72
> GET /
User-Agent: Curl/7.37.0
Host: 192.168
***End***
Received string :
***Start***
AT+CIPCLOSE
ERROR
***End***


Now the host gets cut off after the 192.168 ... even thought the length is 72 ... Any clue?
User avatar
By ikuyad
#39164 Has Anyone figured this out?

I'm trying to send a GET command to Thingspeak but getting the same.
I've checked the character length I'm sending so it should be the right AT+CIPSEND command.

I see that on Thingspeak website that its been "updated" in the sense that the last updated time goes back to "less than a minute". But the plot point isn't added to my graph :( :(

And to check I even entered the part after GET, the http://.. [thingspeak + apikey+ field + data], into my browser and whenever I refresh the page it manages to add the point onto my graph... so I assume the GET command syntax is correct.

I could have sworn I had this working when I tried last year... :(

Any Suggestions?