Go Down

Topic: sms.read() (Read 699 times) previous topic - next topic

I'm trying to follow the SMS read tutorial and don't understand the following line:
Code: [Select]
// Read message bytes and print them
    while(c=sms.read())
      Serial.print(c);


What is c exactly? Is it each character from the message being printed individually or all of them in a character array? How could I combine all the characters into a character sequence. Any explanation would be appreciated.

davidgoth

c is a char that is read from circular buffer of the library. c is each character.

When you receive a SMS message, it content is saved in a circular buffer to be read by sketch.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy