I came across a problem when i try to send data using more than one "/" on my GET command url link.
I am sending serial data to the esp8266 via an Arduino.
EX:
Not working:
String GET = "GET /~test/update.php?a=";
Working:
String GET = "GET /update?key=[MY_API_KEY]&field1="
Send data fonction:
void sendData(int d) {
String cmd = "AT+CIPSTART=\"TCP\",\"";
cmd += IP;
cmd += "\",80";
Serial.println(cmd);
delay(2000);
if(Serial.find("Error")){
return;
}
cmd = GET;
cmd += String(d);
cmd += "\r\n";
Serial.print("AT+CIPSEND=");
Serial.println(cmd.length());
if(Serial.find(">")){
Serial.print(cmd);
}else{
Serial.println("AT+CIPCLOSE");
}
}
Anyone know how to fix this?
LimeHaze