Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: aconno_I2C Lis2dh12 WatchdogTimer
Diff: modem.h
- Revision:
- 22:810425eb76e1
- Parent:
- 21:e0b866630c27
- Child:
- 23:a3b0ccf75ca5
--- a/modem.h Thu Dec 20 22:04:45 2018 +0000
+++ b/modem.h Sat Dec 22 19:33:35 2018 +0000
@@ -8,6 +8,9 @@
#define UC20_BAUDRATE 115200
#define SIM7600_BAUDRATE 115200
#define USSD_MAXLENGTH 160
+ #define ATTIMEOUT_SHORT 5000
+ #define ATTIMEOUT_MED 10000
+ #define ATTIMEOUT_LONG 20000
class Modem
{
@@ -24,7 +27,7 @@
bool USSDsend(char* message, int maxAttempts);
char* USSDreceive(int messageIndex);
char* USSDmessage(char* message, bool needResponse, int maxAttempts, char* api);
- void getLocation(bool gps, bool cellLocate, uint8_t accuracy, uint16_t timeout_seconds); //accuracy is 1,2,3 low, med, high
+ char* getLocation(uint8_t accuracy, uint16_t timeout_seconds); //accuracy is 1,2,3 low, med, high
//AT
void flushSerial(void);