From 4ad29b59c43a6735b36c0798b8c1e7a7c03819be Mon Sep 17 00:00:00 2001 From: Sara Damiano Date: Fri, 31 Jan 2020 17:15:22 -0500 Subject: [PATCH] check ip in connection with correct local ip fxn Signed-off-by: Sara Damiano --- src/TinyGsmClientBG96.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/TinyGsmClientBG96.h b/src/TinyGsmClientBG96.h index 365b67d..a689e3d 100644 --- a/src/TinyGsmClientBG96.h +++ b/src/TinyGsmClientBG96.h @@ -341,21 +341,7 @@ TINY_GSM_MODEM_WAIT_FOR_NETWORK() return true; } - // TINY_GSM_MODEM_GET_GPRS_IP_CONNECTED() - bool isGprsConnected() - { - sendAT(GF("+CGATT?")); - if (waitResponse(GF(GSM_NL "+CGATT:")) != 1) - { - return false; - } - int res = stream.readStringUntil('\n').toInt(); - waitResponse(); - if (res != 1) - return false; - - return true; - } + TINY_GSM_MODEM_GET_GPRS_IP_CONNECTED() /* * IP Address functions