diff --git a/src/TinyGsmClient.h b/src/TinyGsmClient.h index 4e2e413..da0688b 100644 --- a/src/TinyGsmClient.h +++ b/src/TinyGsmClient.h @@ -34,9 +34,9 @@ #elif defined(TINY_GSM_MODEM_UBLOX) #define TINY_GSM_MODEM_HAS_GPRS #include - typedef TinyGsmU201 TinyGsm; - typedef TinyGsmU201::GsmClient TinyGsmClient; - typedef TinyGsmU201::GsmClientSecure TinyGsmClientSecure; + typedef TinyGsmUBLOX TinyGsm; + typedef TinyGsmUBLOX::GsmClient TinyGsmClient; + typedef TinyGsmUBLOX::GsmClientSecure TinyGsmClientSecure; #elif defined(TINY_GSM_MODEM_M95) #define TINY_GSM_MODEM_HAS_GPRS diff --git a/src/TinyGsmClientA6.h b/src/TinyGsmClientA6.h index 792f53e..266e13d 100644 --- a/src/TinyGsmClientA6.h +++ b/src/TinyGsmClientA6.h @@ -49,7 +49,7 @@ class TinyGsmA6 //============================================================================// //============================================================================// -// The A6 Client Class +// The A6 Internal Client Class //============================================================================// //============================================================================// @@ -183,7 +183,7 @@ private: //============================================================================// //============================================================================// -// The A6 Does not have a secure client! +// The A6 does not have a secure client! //============================================================================// //============================================================================// diff --git a/src/TinyGsmClientBG96.h b/src/TinyGsmClientBG96.h index c86f472..b2ca9cf 100644 --- a/src/TinyGsmClientBG96.h +++ b/src/TinyGsmClientBG96.h @@ -9,8 +9,8 @@ #ifndef TinyGsmClientBG96_h #define TinyGsmClientBG96_h -// #define TINY_GSM_DEBUG Serial -// #define TINY_GSM_USE_HEX +//#define TINY_GSM_DEBUG Serial +//#define TINY_GSM_USE_HEX #if !defined(TINY_GSM_RX_BUFFER) #define TINY_GSM_RX_BUFFER 64 @@ -50,7 +50,7 @@ class TinyGsmBG96 //============================================================================// //============================================================================// -// The BG96 Client Class +// The BG96 Internal Client Class //============================================================================// //============================================================================// @@ -178,11 +178,11 @@ public: private: TinyGsmBG96* at; - uint8_t mux; - uint16_t sock_available; - bool sock_connected; - bool got_data; - RxFifo rx; + uint8_t mux; + uint16_t sock_available; + bool sock_connected; + bool got_data; + RxFifo rx; }; //============================================================================// diff --git a/src/TinyGsmClientESP8266.h b/src/TinyGsmClientESP8266.h index c752989..9afb143 100644 --- a/src/TinyGsmClientESP8266.h +++ b/src/TinyGsmClientESP8266.h @@ -50,7 +50,7 @@ class TinyGsmESP8266 //============================================================================// //============================================================================// - // The ESP8266 Client Class + // The ESP8266 Internal Client Class //============================================================================// //============================================================================// diff --git a/src/TinyGsmClientM590.h b/src/TinyGsmClientM590.h index eb553d6..bc4cd06 100644 --- a/src/TinyGsmClientM590.h +++ b/src/TinyGsmClientM590.h @@ -50,7 +50,7 @@ class TinyGsmM590 //============================================================================// //============================================================================// -// The M590 Client Class +// The M590 Internal Client Class //============================================================================// //============================================================================// diff --git a/src/TinyGsmClientM95.h b/src/TinyGsmClientM95.h index ad9ff8c..fefab98 100644 --- a/src/TinyGsmClientM95.h +++ b/src/TinyGsmClientM95.h @@ -9,8 +9,8 @@ #ifndef TinyGsmClientM95_h #define TinyGsmClientM95_h -// #define TINY_GSM_DEBUG Serial -// #define TINY_GSM_USE_HEX +//#define TINY_GSM_DEBUG Serial +//#define TINY_GSM_USE_HEX #if !defined(TINY_GSM_RX_BUFFER) #define TINY_GSM_RX_BUFFER 64 @@ -50,7 +50,7 @@ class TinyGsmM95 //============================================================================// //============================================================================// -// The M95 Client Class +// The M95 Internal Client Class //============================================================================// //============================================================================// @@ -177,17 +177,17 @@ public: String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; private: - TinyGsmM95* at; - uint8_t mux; - uint16_t sock_available; - bool sock_connected; - bool got_data; - RxFifo rx; + TinyGsmM95* at; + uint8_t mux; + uint16_t sock_available; + bool sock_connected; + bool got_data; + RxFifo rx; }; //============================================================================// //============================================================================// -// The M95 Has No Secure Client +// The M95 has no Secure Client (yet) //============================================================================// //============================================================================// diff --git a/src/TinyGsmClientMC60.h b/src/TinyGsmClientMC60.h index 031ea53..3f3ac04 100644 --- a/src/TinyGsmClientMC60.h +++ b/src/TinyGsmClientMC60.h @@ -56,7 +56,7 @@ class TinyGsmMC60 //============================================================================// //============================================================================// -// The MC60 Client Class +// The MC60 Internal Client Class //============================================================================// //============================================================================// @@ -190,13 +190,13 @@ public: String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; private: - TinyGsmMC60* at; - uint8_t mux; - uint16_t sock_available; - uint32_t prev_check; - bool sock_connected; - bool got_data; - RxFifo rx; + TinyGsmMC60* at; + uint8_t mux; + uint16_t sock_available; + uint32_t prev_check; + bool sock_connected; + bool got_data; + RxFifo rx; }; //============================================================================// diff --git a/src/TinyGsmClientSIM800.h b/src/TinyGsmClientSIM800.h index fc6bb40..51c475b 100644 --- a/src/TinyGsmClientSIM800.h +++ b/src/TinyGsmClientSIM800.h @@ -50,7 +50,7 @@ class TinyGsmSim800 //============================================================================// //============================================================================// -// The Sim800 Client Class +// The Sim800 Internal Client Class //============================================================================// //============================================================================// @@ -185,13 +185,13 @@ public: String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; private: - TinyGsmSim800* at; - uint8_t mux; - uint16_t sock_available; - uint32_t prev_check; - bool sock_connected; - bool got_data; - RxFifo rx; + TinyGsmSim800* at; + uint8_t mux; + uint16_t sock_available; + uint32_t prev_check; + bool sock_connected; + bool got_data; + RxFifo rx; }; //============================================================================// diff --git a/src/TinyGsmClientUBLOX.h b/src/TinyGsmClientUBLOX.h index 269e3aa..2331738 100644 --- a/src/TinyGsmClientUBLOX.h +++ b/src/TinyGsmClientUBLOX.h @@ -1,13 +1,13 @@ /** - * @file TinyGsmClientU201.h + * @file TinyGsmClientUBLOX.h * @author Volodymyr Shymanskyy * @license LGPL-3.0 * @copyright Copyright (c) 2016 Volodymyr Shymanskyy * @date Nov 2016 */ -#ifndef TinyGsmClientU201_h -#define TinyGsmClientU201_h +#ifndef TinyGsmClientUBLOX_h +#define TinyGsmClientUBLOX_h //#define TINY_GSM_DEBUG Serial @@ -41,16 +41,16 @@ enum RegStatus { //============================================================================// //============================================================================// -// Declaration of the TinyGsmU201 Class +// Declaration of the TinyGsmUBLOX Class //============================================================================// //============================================================================// -class TinyGsmU201 +class TinyGsmUBLOX { //============================================================================// //============================================================================// -// The U201 Client Class +// The UBLOX Internal Client Class //============================================================================// //============================================================================// @@ -59,17 +59,17 @@ public: class GsmClient : public Client { - friend class TinyGsmU201; + friend class TinyGsmUBLOX; typedef TinyGsmFifo RxFifo; public: GsmClient() {} - GsmClient(TinyGsmU201& modem, uint8_t mux = 1) { + GsmClient(TinyGsmUBLOX& modem, uint8_t mux = 1) { init(&modem, mux); } - bool init(TinyGsmU201* modem, uint8_t mux = 1) { + bool init(TinyGsmUBLOX* modem, uint8_t mux = 1) { this->at = modem; this->mux = mux; sock_available = 0; @@ -175,7 +175,7 @@ public: String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; private: - TinyGsmU201* at; + TinyGsmUBLOX* at; uint8_t mux; uint16_t sock_available; bool sock_connected; @@ -185,7 +185,7 @@ private: //============================================================================// //============================================================================// -// The Secure U201 Client Class +// The Secure UBLOX Client Class //============================================================================// //============================================================================// @@ -195,7 +195,7 @@ class GsmClientSecure : public GsmClient public: GsmClientSecure() {} - GsmClientSecure(TinyGsmU201& modem, uint8_t mux = 1) + GsmClientSecure(TinyGsmUBLOX& modem, uint8_t mux = 1) : GsmClient(modem, mux) {} @@ -212,16 +212,16 @@ public: //============================================================================// //============================================================================// -// The U201 Modem Functions +// The UBLOX Modem Functions //============================================================================// //============================================================================// public: #ifdef GSM_DEFAULT_STREAM - TinyGsmU201(Stream& stream = GSM_DEFAULT_STREAM) + TinyGsmUBLOX(Stream& stream = GSM_DEFAULT_STREAM) #else - TinyGsmU201(Stream& stream) + TinyGsmUBLOX(Stream& stream) #endif : stream(stream) { diff --git a/src/TinyGsmClientXBee.h b/src/TinyGsmClientXBee.h index a953cd2..b823726 100644 --- a/src/TinyGsmClientXBee.h +++ b/src/TinyGsmClientXBee.h @@ -55,7 +55,7 @@ class TinyGsmXBee //============================================================================// //============================================================================// -// The XBee Client Class +// The XBee Internal Client Class //============================================================================// //============================================================================// @@ -502,6 +502,7 @@ public: exitCommand(); return stat; } + String getOperator() { if (!commandMode()) return ""; // Return immediately sendAT(GF("MN"));