The use of the ESP8266 in the world of IoT

User avatar
By Burak Günay
#11645 Nope ... I tried and it doesn't work on an mcu ...

Here is the code I sent through an ESP8266

Code: Select allAT+CIPSTART=4,"TCP","api.pushingbox.com",80
AT+CIPSEND=4,105
GET /pushingbox?devid=<my devid> HTTP/1.1\r\nHost: api.pushingbox.com\r\nConnection: close\r\n\r\n


It's been days and I can't still success it :( How can we communicate with this pushingbox api server ! GOD !
User avatar
By Hexor
#11681
AT+CIPSEND=4,105

Have you replaced the 105 number with the correct number of byte? (becareful \r = 1 byte, so \r\n = 2 and not 4 byte ;) )

Can you post your exact GET request ?
User avatar
By Burak Günay
#11691
Hexor wrote:
AT+CIPSEND=4,105

Have you replaced the 105 number with the correct number of byte? (becareful \r = 1 byte, so \r\n = 2 and not 4 byte ;) )

Can you post your exact GET request ?


Well , I am really confused now ... If those /r and /n statements stand for Carriage return (ascii : 13) and New Line Feed (ascii : 10) we've got a big problem because ESP8266 accepts 13 as command ending ... So If I use the code below things won't work in this embedded system ...
By the way I've got no idea how to send the CR+LFs using a Serial Terminal Software other than an embedded system ...

Code: Select all    HSEROUT["GET /pushingbox?devid=<mydev-id> HTTP/1.1",10,13]
    HSEROUT["Host: api.pushingbox.com",10,13]
    HSEROUT["Cache-Control: no-cache",10,13]


Now I'm completely stuck :(