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:
Fri Nov 30 16:19:41 2018 +0100
Revision:
8:2bf886335fd0
Child:
9:f943c09d9173
Aconno init commit

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 8:2bf886335fd0 13 class UBloxSara
jurica238814 8:2bf886335fd0 14 {
jurica238814 8:2bf886335fd0 15 public:
jurica238814 8:2bf886335fd0 16 UBloxSara(ATCmdParser *at, Udp udp);
jurica238814 8:2bf886335fd0 17 bool setup();
jurica238814 8:2bf886335fd0 18 void sendCommand(char *command);
jurica238814 8:2bf886335fd0 19 void sendUdpMsg(char *msg, char *flags = "");
jurica238814 8:2bf886335fd0 20 uint8_t connectNB();
jurica238814 8:2bf886335fd0 21 void checkNetworkStatus(char *response);
jurica238814 8:2bf886335fd0 22 private:
jurica238814 8:2bf886335fd0 23 ATCmdParser *_at;
jurica238814 8:2bf886335fd0 24 Udp _udp;
jurica238814 8:2bf886335fd0 25 protected:
jurica238814 8:2bf886335fd0 26 };
jurica238814 8:2bf886335fd0 27
jurica238814 8:2bf886335fd0 28 #endif // __U_BLOX_SARA_H__