Using a SIM900 module to receive information I seem to be losing half of the data.
The code:
Serial1.println("AT+HTTPACTION=1");//submit the request //0:READ 1:POST 2:HEAD
delay(10000);
ShowSerialData();
Serial1.println("AT+HTTPREAD");// read the data from the website you access
ShowSerialData();
}
void ShowSerialData()
{
while(Serial1.available()>0)
Serial.write(Serial1.read());
}
The result I get is that only half of the data I require is printed out. Output:
AT+HTTPACTION=1
OK
+HTTPACTION:1,200,47
AT+HTTPREAD
AT+HTTPTERM
+HTTPREAD:47
{"uuid":"5daa6d61-6c9
As you can see only half of my uuid is present. What is happening to the rest of the data?