How Read incoming sms using at command AT+CNMI

HI

How can I read a message that came to module Telit GM862?

I use the at commands

Serial.print("AT+CMGF=1");
delay(1000);
Serial.print("AT+CNMI=1,2,0,0,0");

and when the module receive a sms comunicate with arduino
and sends something like this:

+CMT: "+351933482729",,"09/10/26,16:00:44+00"
Teste teste

But i don't know how to read this message :-[

Anyone know how to wait for this message.

I tried to use de serial.read(). but I can't catch that text.

I tried to use de serial.read(). but I can't catch that text.

Serial.read() is what you need to use, preceded by an
if (Serial.available()> 0) {
To make sure you don't just read an empty buffer. Where are you putting the data and what do you mean by catch the test.

Have you posted this before?

Hi

I just use serial.Read()

and

if (Serial.available()> 0) {
byte = Serial.Read();
}

but I don't can catch the data I was expecting.

anyone could help me.