I have used AT commands to read incoming bytes from serial buffer from SIM900A but I cannot get the complete message using the code below:
while(ss.available()>0)
{
inChar=ss.read();
inString+=inChar;
}
Serial.println("Received messaged: ");
Serial.println(inString);
inString="";
However this one below works:
if(ss.available()>0)
{
inString=ss.readString();
}
Serial.println("Received messaged: ");
Serial.println(inString);
inString="";
I wonder what is the difference?
inString
? Could you please post a Minimal, Reproducible Example – sa_leinad May 29 '19 at 11:36