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.

Dependencies:   GPS_CanSat mbed

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.

Revision:
0:8f9b472ff818
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gsm.h	Sat Jul 11 20:48:40 2015 +0000
@@ -0,0 +1,44 @@
+#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();*/
\ No newline at end of file