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@8:2bf886335fd0, 2018-11-30 (annotated)
- Committer:
- jurica238814
- Date:
- Fri Nov 30 16:19:41 2018 +0100
- Revision:
- 8:2bf886335fd0
- Child:
- 9:f943c09d9173
Aconno init commit
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 | 8:2bf886335fd0 | 28 | bool getGPSData(char *location, GnssSerial *gnss); |
jurica238814 | 8:2bf886335fd0 | 29 | |
jurica238814 | 8:2bf886335fd0 | 30 | #endif // |