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

UBloxSara/uBloxSara.h

Committer:
jurica238814
Date:
2018-12-19
Revision:
9:f943c09d9173
Parent:
8:2bf886335fd0

File content as of revision 9:f943c09d9173:

/**
 * U-Blox SARA nb-iot module class
 * Made by Jurica Resetar @ aconno
 * More info @ aconno.de
 */

#ifndef __U_BLOX_SARA_H__
#define __U_BLOX_SARA_H__

#include "mbed.h"
#include "udp.h"

#define CUSTOM_BOARD            (1)

class UBloxSara
{
	public:
		UBloxSara(ATCmdParser *at, Udp udp);
		bool setup();
		void sendCommand(char *command);
		void sendUdpMsg(char *msg, char *flags = "");
		uint8_t connectNB();
		void checkNetworkStatus(char *response);
	private:
		ATCmdParser *_at;
		Udp _udp;
	protected:
};

#endif // __U_BLOX_SARA_H__