MarcoMartines / GSM-GPRS-GPS-Shield

GSM/GPRS & GPS Shield Library for modules using SIM900/SIM908
GNU General Public License v2.0
208 stars 152 forks source link

Improvements to library #51

Open boylesg opened 6 years ago

boylesg commented 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