Testing the module's internet connection (spoiler: it doesn't work) WARNING: this code has been written in a hurry during an hackathon. It's total crap.
Testing the module's internet connection (spoiler: it doesn't work) WARNING: this code has been written in a hurry during an hackathon. It's total crap.
gsm.h
- Committer:
- gipmad
- Date:
- 2015-07-11
- Revision:
- 0:8f9b472ff818
File content as of revision 0:8f9b472ff818:
#include "mbed.h" #ifndef MBED_GSM_H #define MBED_GSM_H extern Serial pc; class GSM { public: GSM(PinName tx, PinName rx); Serial _gsm; /* char* getGGA(); float longitude(); float latitude(); float time(); int ns(); int ew(); int lock();*/ private: void sample(); void getline(); char msg[128],gga[128]; int SMSid; /* float _longitude; float _latitude; float _time; char _ns, _ew; int _lock;*/ int flag_gsm_get; int flag_gsm_getend; int count; // int flag_gga; }; #endif /*#include "mbed.h" #define GSMdbg 1 extern Serial pc; extern void GSMtst1();*/