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

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?

UserRevisionLine numberNew contents of line
jurica238814 8:2bf886335fd0 1 /**
jurica238814 8:2bf886335fd0 2 * U-Blox SARA nb-iot module class
jurica238814 8:2bf886335fd0 3 * Made by Jurica Resetar @ aconno
jurica238814 8:2bf886335fd0 4 * More info @ aconno.de
jurica238814 8:2bf886335fd0 5 */
jurica238814 8:2bf886335fd0 6
jurica238814 8:2bf886335fd0 7 #ifndef __U_BLOX_SARA_H__
jurica238814 8:2bf886335fd0 8 #define __U_BLOX_SARA_H__
jurica238814 8:2bf886335fd0 9
jurica238814 8:2bf886335fd0 10 #include "mbed.h"
jurica238814 8:2bf886335fd0 11 #include "udp.h"
jurica238814 8:2bf886335fd0 12
jurica238814 9:f943c09d9173 13 #define CUSTOM_BOARD (1)
jurica238814 9:f943c09d9173 14
jurica238814 8:2bf886335fd0 15 class UBloxSara
jurica238814 8:2bf886335fd0 16 {
jurica238814 8:2bf886335fd0 17 public:
jurica238814 8:2bf886335fd0 18 UBloxSara(ATCmdParser *at, Udp udp);
jurica238814 8:2bf886335fd0 19 bool setup();
jurica238814 8:2bf886335fd0 20 void sendCommand(char *command);
jurica238814 8:2bf886335fd0 21 void sendUdpMsg(char *msg, char *flags = "");
jurica238814 8:2bf886335fd0 22 uint8_t connectNB();
jurica238814 8:2bf886335fd0 23 void checkNetworkStatus(char *response);
jurica238814 8:2bf886335fd0 24 private:
jurica238814 8:2bf886335fd0 25 ATCmdParser *_at;
jurica238814 8:2bf886335fd0 26 Udp _udp;
jurica238814 8:2bf886335fd0 27 protected:
jurica238814 8:2bf886335fd0 28 };
jurica238814 8:2bf886335fd0 29
jurica238814 8:2bf886335fd0 30 #endif // __U_BLOX_SARA_H__