The program sends the current location over the cellular network.

Dependencies:   aconno_I2C ublox-at-cellular-interface gnss ublox-cellular-base Lis2dh12 ublox-cellular-base-n2xx ublox-at-cellular-interface-n2xx low-power-sleep

Fork of example-gnss by u-blox

Revision:
8:2bf886335fd0
Child:
9:f943c09d9173
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tasks/tasks.h	Fri Nov 30 16:19:41 2018 +0100
@@ -0,0 +1,36 @@
+/**
+ * Collection of all tasks  
+ * Made by Jurica @ aconno
+ * More info @ aconno.de
+ * 
+ */
+
+#ifndef __TASKS_H__
+#define __TASKS_H__
+
+#include "mbed.h"
+#include "aconnoConfig.h"
+#include "uBloxSara.h"
+#include "gnss.h"
+
+struct myParams_t
+{
+    GnssSerial *gnss;
+    UBloxSara *sara;
+};
+
+enum MainStates
+{
+    STATE_IDLE,
+    STATE_ALARM,
+    STATE_ALARM_OFF,
+    STATE_LIS_DETECTION
+};
+
+void idleCallback();
+void alarmCallback(myParams_t *myParams);
+void alarmOffCallback();
+void movementCallback();
+void gnssLocationCallback(GnssSerial *gnss);
+
+#endif // __TASKS_H__
\ No newline at end of file