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
aconnoHelpers/aconnoHelpers.h@9:f943c09d9173, 2018-12-19 (annotated)
- Committer:
- jurica238814
- Date:
- Wed Dec 19 15:12:25 2018 +0100
- Revision:
- 9:f943c09d9173
- Parent:
- 8:2bf886335fd0
Stable version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jurica238814 | 8:2bf886335fd0 | 1 | /** |
jurica238814 | 8:2bf886335fd0 | 2 | * aconno helpers header |
jurica238814 | 8:2bf886335fd0 | 3 | */ |
jurica238814 | 8:2bf886335fd0 | 4 | |
jurica238814 | 8:2bf886335fd0 | 5 | #ifndef __ACONNO_HELPERS_H__ |
jurica238814 | 8:2bf886335fd0 | 6 | #define __ACONNO_HELPERS_H__ |
jurica238814 | 8:2bf886335fd0 | 7 | |
jurica238814 | 8:2bf886335fd0 | 8 | #include "gnss.h" |
jurica238814 | 8:2bf886335fd0 | 9 | |
jurica238814 | 8:2bf886335fd0 | 10 | #define CHECK_TALKER(s) ((buffer[3] == s[0]) && (buffer[4] == s[1]) && (buffer[5] == s[2])) |
jurica238814 | 8:2bf886335fd0 | 11 | |
jurica238814 | 8:2bf886335fd0 | 12 | /** |
jurica238814 | 8:2bf886335fd0 | 13 | * Standard integer to string function |
jurica238814 | 8:2bf886335fd0 | 14 | * @param num Integer to convert |
jurica238814 | 8:2bf886335fd0 | 15 | * @param str Pointer to the buffer |
jurica238814 | 8:2bf886335fd0 | 16 | * @param base Number's base |
jurica238814 | 8:2bf886335fd0 | 17 | * @return Pointer to the output string |
jurica238814 | 8:2bf886335fd0 | 18 | */ |
jurica238814 | 8:2bf886335fd0 | 19 | |
jurica238814 | 8:2bf886335fd0 | 20 | extern "C" char* itoa(int num, char* str, int base); |
jurica238814 | 8:2bf886335fd0 | 21 | |
jurica238814 | 8:2bf886335fd0 | 22 | /** |
jurica238814 | 8:2bf886335fd0 | 23 | * Standard string reverse function |
jurica238814 | 8:2bf886335fd0 | 24 | * @param str Pointer to the string |
jurica238814 | 8:2bf886335fd0 | 25 | */ |
jurica238814 | 8:2bf886335fd0 | 26 | void reverse(char *str); |
jurica238814 | 8:2bf886335fd0 | 27 | |
jurica238814 | 9:f943c09d9173 | 28 | bool getGPSData(char *location, GnssSerial *gnss, uint32_t timeoutS = 0); |
jurica238814 | 8:2bf886335fd0 | 29 | |
jurica238814 | 8:2bf886335fd0 | 30 | #endif // |