Added IMSI

This commit is contained in:
Sara Damiano
2020-02-11 16:32:38 -05:00
parent 36bb2e96a5
commit cef8aefefc
3 changed files with 18 additions and 15 deletions

View File

@@ -117,18 +117,3 @@ uint32_t TinyGsmAutoBaud(T& SerialAT, uint32_t minimum = 9600,
}
#endif // SRC_TINYGSMCOMMON_H_
// Asks for International Mobile Subscriber Identity IMSI via the AT+CIMI command
#define TINY_GSM_MODEM_GET_IMSI_CIMI() \
String getIMSI() { \
sendAT(GF("+CIMI")); \
if (waitResponse(GF(GSM_NL)) != 1) { \
return ""; \
} \
String res = stream.readStringUntil('\n'); \
waitResponse(); \
res.trim(); \
return res; \
}