Pathfindr / Mbed OS mbed-os-PF-UWBBEACON_v1_dev

Dependencies:   aconno_I2C Lis2dh12 WatchdogTimer

Revision:
13:29f67f256709
Parent:
12:8345612bf867
Child:
14:9a54b1b65bc8
--- a/modem.h	Sun Dec 16 01:06:14 2018 +0000
+++ b/modem.h	Sun Dec 16 15:21:38 2018 +0000
@@ -7,6 +7,7 @@
 
     #define UC20_BAUDRATE       115200
     #define SIM7600_BAUDRATE    115200
+    #define USSD_MAXLENGTH      130
     
     class Modem
     {
@@ -21,13 +22,14 @@
             //funcs
             bool registerOnNetwork(int maxAttempts, uint32_t timeout);
             bool USSDsend(char* message, int maxAttempts);
-            char* USSDreceive(uint32_t timeout);
-            bool USSDmessage(char* message, int maxAttempts, bool needResponse);
+            char* USSDreceive();
+            char* USSDmessage(char* message, bool needResponse, int maxAttempts);
             
             //AT
             void flushSerial(void);
             void ATsendCMD(char* cmd);
             bool ATwaitForWord(char* word, uint32_t timeout);
+            long long getIMEI(void);
         private: