27 #ifndef _EASYUINO_SMS_h 28 #define _EASYUINO_SMS_h 30 #include "Utilities.h" 33 #define MAX_SMS_SIZE 50 42 unsigned int _countryPrefixCode;
44 unsigned long _number;
46 char _message[MAX_SMS_SIZE + 1];
54 SMS(IN
unsigned long number, IN
const char* message, IN
unsigned int countryPrefixCode = 351);
59 SMS(IN
unsigned int countryPrefixCode = 351);
79 void setNumber(IN
unsigned long newNumber);
void setCountryPrefixCode(IN unsigned int newCountryPrefixCode)
Set the country prefix code associated with the SMS.
Represents a SMS object used to send and receive it from the GSMService API.
Definition: SMS.h:38
SMS(IN unsigned long number, IN const char *message, IN unsigned int countryPrefixCode=351)
Constructor.
void setNumber(IN unsigned long newNumber)
Set the number of the SMS.
unsigned int getCountryPrefixCode()
Get the country prefix code associated with the SMS.
void setMessage(IN const char *newMessage)
Set the message of the SMS.
const char * getMessage()
Get the message associated with the SMS.
unsigned long getNumber()
Get the number associated with the SMS.
void reset()
Resets the message to empty, phone number to zero and the country prefix code to 0.