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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers uBloxSara.h Source File

uBloxSara.h

00001 /**
00002  * U-Blox SARA nb-iot module class
00003  * Made by Jurica Resetar @ aconno
00004  * More info @ aconno.de
00005  */
00006 
00007 #ifndef __U_BLOX_SARA_H__
00008 #define __U_BLOX_SARA_H__
00009 
00010 #include "mbed.h"
00011 #include "udp.h"
00012 
00013 #define CUSTOM_BOARD            (1)
00014 
00015 class UBloxSara
00016 {
00017     public:
00018         UBloxSara(ATCmdParser *at, Udp udp);
00019         bool setup();
00020         void sendCommand(char *command);
00021         void sendUdpMsg(char *msg, char *flags = "");
00022         uint8_t connectNB();
00023         void checkNetworkStatus(char *response);
00024     private:
00025         ATCmdParser *_at;
00026         Udp _udp;
00027     protected:
00028 };
00029 
00030 #endif // __U_BLOX_SARA_H__