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
UBloxSara/uBloxSara.h
- Committer:
- jurica238814
- Date:
- 2018-11-30
- Revision:
- 8:2bf886335fd0
- Child:
- 9:f943c09d9173
File content as of revision 8:2bf886335fd0:
/**
* 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"
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__
