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
tasks.h
00001 /** 00002 * Collection of all tasks 00003 * Made by Jurica @ aconno 00004 * More info @ aconno.de 00005 * 00006 */ 00007 00008 #ifndef __TASKS_H__ 00009 #define __TASKS_H__ 00010 00011 #include "mbed.h" 00012 #include "aconnoConfig.h" 00013 #include "uBloxSara.h" 00014 #include "gnss.h" 00015 00016 struct myParams_t 00017 { 00018 GnssSerial *gnss; 00019 UBloxSara *sara; 00020 }; 00021 00022 enum locationFlag_t 00023 { 00024 OLD, 00025 NEW 00026 }; 00027 00028 enum MainStates 00029 { 00030 STATE_IDLE, 00031 STATE_ALARM, 00032 STATE_ALARM_OFF, 00033 STATE_LIS_DETECTION 00034 }; 00035 00036 void idleCallback(); 00037 void alarmCallback(myParams_t *myParams); 00038 void alarmOffCallback(); 00039 void movementCallback(); 00040 void gnssLocationCallback(GnssSerial *gnss); 00041 00042 #endif // __TASKS_H__
Generated on Tue Jul 12 2022 15:46:17 by 1.7.2