From 0c5d2c03612f8b8ffc0dc28eb1db4e6476d3ec60 Mon Sep 17 00:00:00 2001 From: lewishe Date: Wed, 29 Nov 2023 16:31:27 +0800 Subject: [PATCH] Update TinyGSM --- lib/TinyGSM/src/TinyGsmClientSIM7672.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/TinyGSM/src/TinyGsmClientSIM7672.h b/lib/TinyGSM/src/TinyGsmClientSIM7672.h index 681ffb3..92e4cbd 100644 --- a/lib/TinyGSM/src/TinyGsmClientSIM7672.h +++ b/lib/TinyGSM/src/TinyGsmClientSIM7672.h @@ -224,6 +224,15 @@ class TinyGsmSim7672 : public TinyGsmModem, return false; } + // AT+GSN command + String getIMEIImpl() { + sendAT(GF("+CGSN")); + streamSkipUntil('\n'); // skip first newline + String res = stream.readStringUntil('\n'); + waitResponse(); + res.trim(); + return res; + } /* * Power functions */