In something like this:
if (SIM900.available() > 0){
c = SIM900.read();
if (c != '\r') temp = temp + c;
else {
//do something with string temp
}
}
In something like this:
if (SIM900.available() > 0){
c = SIM900.read();
if (c != '\r') temp = temp + c;
else {
//do something with string temp
}
}