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

aconnoHelpers/aconnoHelpers.h

Committer:
jurica238814
Date:
2018-12-19
Revision:
9:f943c09d9173
Parent:
8:2bf886335fd0

File content as of revision 9:f943c09d9173:

/**
 * aconno helpers header
 */

#ifndef __ACONNO_HELPERS_H__
#define __ACONNO_HELPERS_H__

#include "gnss.h"

#define CHECK_TALKER(s) 		((buffer[3] == s[0]) && (buffer[4] == s[1]) && (buffer[5] == s[2]))

/**
 * Standard integer to string function
 * @param  num  	Integer to convert
 * @param  str  	Pointer to the buffer
 * @param  base 	Number's base
 * @return      	Pointer to the output string
 */

extern "C" char* itoa(int num, char* str, int base);

/**
 * Standard string reverse function
 * @param str 		Pointer to the string
 */
void reverse(char *str);

bool getGPSData(char *location, GnssSerial *gnss, uint32_t timeoutS = 0);

#endif	//