I am a newbie in the Arduino world, and will appreciate your help.
My project requires me to get some data from the pachube server using the GPRS shield. The issue that I have is when I use the ‘GET’ command, the data that I get back from pachube is too long to store in the register, and so there is a buffer overflow, and the data is lost.
Now, when I edit the buffer length in the Software Serial.h to 256, I can get more data to be stored in the register, but still not enough.
#define _SS_MAX_RX_BUFF 64 // RX buffer size
Beyond 256, my Arduino stalker board cannot handle the memory, and hangs.
I will really appreciate it if someone could help me with my problem. Thanks.
Please find my code below:
[code]GPRS_Serial.print(“GET /v2/feeds/51575/datastreams/Sample.csv HTTP/1.1\r\n”);
Serial.println(“GET /v2/feeds/51575/datastreams/Sample.csv HTTP/1.1 Sent!”);
delay(300);
GPRS_Serial.print(“Host: api.cosm.com\r\n”);
Serial.println(“Host: api.cosm.com Sent!”);
GPRS_Serial.print("\r\n");
GPRS_Serial.write(26);
delay(300); //Send End Of Line Character to send all the data and close connection
//delay (1000);
while (GPRS_Serial.available()!=0) {
char inByte = GPRS_Serial.read();
Serial.write(inByte);
}
[/code]