Mostly whitespace changes
This commit is contained in:
		| @@ -34,9 +34,9 @@ | ||||
| #elif defined(TINY_GSM_MODEM_UBLOX) | ||||
|   #define TINY_GSM_MODEM_HAS_GPRS | ||||
|   #include <TinyGsmClientUBLOX.h> | ||||
|   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 | ||||
|   | ||||
| @@ -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! | ||||
| //============================================================================// | ||||
| //============================================================================// | ||||
|  | ||||
|   | ||||
| @@ -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; | ||||
| }; | ||||
|  | ||||
| //============================================================================// | ||||
|   | ||||
| @@ -50,7 +50,7 @@ class TinyGsmESP8266 | ||||
|  | ||||
|   //============================================================================// | ||||
|   //============================================================================// | ||||
|   //                          The ESP8266 Client Class | ||||
|   //                      The ESP8266 Internal Client Class | ||||
|   //============================================================================// | ||||
|   //============================================================================// | ||||
|  | ||||
|   | ||||
| @@ -50,7 +50,7 @@ class TinyGsmM590 | ||||
|  | ||||
| //============================================================================// | ||||
| //============================================================================// | ||||
| //                          The M590 Client Class | ||||
| //                          The M590 Internal Client Class | ||||
| //============================================================================// | ||||
| //============================================================================// | ||||
|  | ||||
|   | ||||
| @@ -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) | ||||
| //============================================================================// | ||||
| //============================================================================// | ||||
|  | ||||
|   | ||||
| @@ -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; | ||||
| }; | ||||
|  | ||||
| //============================================================================// | ||||
|   | ||||
| @@ -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; | ||||
| }; | ||||
|  | ||||
| //============================================================================// | ||||
|   | ||||
| @@ -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<uint8_t, TINY_GSM_RX_BUFFER> 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) | ||||
|   { | ||||
|   | ||||
| @@ -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")); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user