Browse Source

Merge branch 'master' into develop

v_master
Sara Damiano 5 years ago
parent
commit
36bb2e96a5
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      src/TinyGsmCommon.h

+ 15
- 0
src/TinyGsmCommon.h View File

@ -117,3 +117,18 @@ 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; \
}

Loading…
Cancel
Save