hi everyone,
i'm using a GSM shield with arduino to display receive sms. how can i store the sms in an array which is displayed via serial monitor and when new sms is available, it is stored and displayed instead of current sms.
void loop()
{
char c;
// If there are any SMSs available()
if (sms.available())
{
// Read message bytes and print them
while (c = sms.read())
Serial.print(c);
Serial.println("\nEND OF MESSAGE");
// Delete message from modem memory
sms.flush();
Serial.println("MESSAGE DELETED");
}
delay(1000);
}