Welcome, Guest
Username: Password: Remember me

TOPIC: easyiot cloud not receiving AT commands

easyiot cloud not receiving AT commands 1 year 4 months ago #3284

  • mamic2
  • mamic2's Avatar
  • Offline
  • New Member
  • Posts: 4
  • Karma: 0
Hello guys,
i have my nano+esp8266 (i cant use esp8266 alone for some reasons).
The problem is that when i try to POST a request to update a sensor value, easyiot is not able to receive it if i use AT commands. On the other hand, if i use other ways to send POST request (eg via website) it works and value gets updated.
here the code,please let me know if its a problem of easyiot Authorization or my mistake
int t=40;
String url = "";
url += "POST /RestApi/v1.0/Parameter/" + String(PARAM1_ID) + "/Value/" + t;

String ccmmdd=String(url+" HTTP/1.1\r\n") +
"Host: " + String(IP) + ":" + String(PORT) + "\r\n" +
"EIOT-AuthToken: " + String(TOKEN) + "\r\n" +
"Connection: close\r\n" +
"Content-Length: 0\r\n" +;
"\r\n";

Serial.println(ccmmdd);
esp8266.print("AT+CIPSEND=");
esp8266.println(ccmmdd.length());
delay(500);
esp8266.print(ccmmdd);
The administrator has disabled public write access.
Time to create page: 0.110 seconds
Powered by Kunena Forum