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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers aconnoHelpers.h Source File

aconnoHelpers.h

00001 /**
00002  * aconno helpers header
00003  */
00004 
00005 #ifndef __ACONNO_HELPERS_H__
00006 #define __ACONNO_HELPERS_H__
00007 
00008 #include "gnss.h"
00009 
00010 #define CHECK_TALKER(s)         ((buffer[3] == s[0]) && (buffer[4] == s[1]) && (buffer[5] == s[2]))
00011 
00012 /**
00013  * Standard integer to string function
00014  * @param  num      Integer to convert
00015  * @param  str      Pointer to the buffer
00016  * @param  base     Number's base
00017  * @return          Pointer to the output string
00018  */
00019 
00020 extern "C" char* itoa(int num, char* str, int base);
00021 
00022 /**
00023  * Standard string reverse function
00024  * @param str       Pointer to the string
00025  */
00026 void reverse(char *str);
00027 
00028 bool getGPSData(char *location, GnssSerial *gnss, uint32_t timeoutS = 0);
00029 
00030 #endif  //