I want to send gps and voltage informations to web server using arduino via sim800c.But, I am having an issue with sending long url to web server. When I call gprs data send function in loop, It returns gprs configuration function at “AT+HTTPDATA” command.
I think the buffer is overflows because the url is long. Do you think so? If so, is there any other method you can recommend?
void GprsDataSend(void){
String com="AT+HTTPPARA=\"URL\",\"http://api.trackers.live/v3.0.0/TRCKR016CF59E6EDE/" +
String(Lat,9)+ "-" + String(Long,9)+ "-" + String(Alt,9) + "/" + String(Voltage) + "/" + String(Percentage) + "/"
+ String(counter)+"\"";
if(answer==1){
answer=sendATcommand(com),"OK","ERROR",5000);
if(answer==1){
answer=sendATcommand("AT+HTTPACTION=1\r\n", "OK","ERROR", 5000);
}
}
}