How to read last SMS sent to the GSM shield-Arduino Mega 2560

Hi there!

Can you please help or suggest me method in reading only the last SMS sent to the GSM shield? I'm using:

  1. Tiny Sine 3G (European version) GSM shield.
  2. Library- Adafruit FONA 3G- https://learn.adafruit.com/adafruit-fona-mini-gsm-gprs-cellular-phone-module/arduino-test[](https://learn.adafruit.com/adafruit-fona-mini-gsm-gprs-cellular-phone-module/arduino-test)

At the moment my code is reading only the first message stored in the buffer and sending SMS to the mobile number in the first text.

Your Arduino program sent the message to the shield? Then it should remember what it sent.

Post your code.