Open boylesg opened 6 years ago
Removed hard coding that limits you to using SoftwareSerial for Uno and Serial1 for Mega
You can now use the classes like this:
CSIMCOM900 gsm(&Serial1); SoftwareSerial ss(8, 9); CSIMCOM900 gsm(&Serial1); //CSIMCOM900 gsm(&ss); CSMSGSM sms(gsm);
void setup() { gsm.begin(115200); }
Also wrapped all the literal strings in F() and added appropriate function versions to take flash strings rather than normal c strings.
Changed to Hungarian notation.
Changed int to int16_t etc
Changed some function return types to bool
Removed hard coding that limits you to using SoftwareSerial for Uno and Serial1 for Mega
You can now use the classes like this:
CSIMCOM900 gsm(&Serial1); SoftwareSerial ss(8, 9); CSIMCOM900 gsm(&Serial1); //CSIMCOM900 gsm(&ss); CSMSGSM sms(gsm);
void setup() { gsm.begin(115200); }
Also wrapped all the literal strings in F() and added appropriate function versions to take flash strings rather than normal c strings.
Changed to Hungarian notation.
Changed int to int16_t etc
Changed some function return types to bool