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:
- 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: