Mostly whitespace changes

This commit is contained in:
SRGDamia1
2018-05-16 13:07:34 -04:00
parent 2635842aba
commit 8ddb4c39fc
10 changed files with 58 additions and 57 deletions

View File

@@ -34,9 +34,9 @@
#elif defined(TINY_GSM_MODEM_UBLOX) #elif defined(TINY_GSM_MODEM_UBLOX)
#define TINY_GSM_MODEM_HAS_GPRS #define TINY_GSM_MODEM_HAS_GPRS
#include <TinyGsmClientUBLOX.h> #include <TinyGsmClientUBLOX.h>
typedef TinyGsmU201 TinyGsm; typedef TinyGsmUBLOX TinyGsm;
typedef TinyGsmU201::GsmClient TinyGsmClient; typedef TinyGsmUBLOX::GsmClient TinyGsmClient;
typedef TinyGsmU201::GsmClientSecure TinyGsmClientSecure; typedef TinyGsmUBLOX::GsmClientSecure TinyGsmClientSecure;
#elif defined(TINY_GSM_MODEM_M95) #elif defined(TINY_GSM_MODEM_M95)
#define TINY_GSM_MODEM_HAS_GPRS #define TINY_GSM_MODEM_HAS_GPRS

View File

@@ -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!
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//

View File

@@ -50,7 +50,7 @@ class TinyGsmBG96
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
// The BG96 Client Class // The BG96 Internal Client Class
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//

View File

@@ -50,7 +50,7 @@ class TinyGsmESP8266
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
// The ESP8266 Client Class // The ESP8266 Internal Client Class
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//

View File

@@ -50,7 +50,7 @@ class TinyGsmM590
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
// The M590 Client Class // The M590 Internal Client Class
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//

View File

@@ -50,7 +50,7 @@ class TinyGsmM95
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
// The M95 Client Class // The M95 Internal Client Class
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
@@ -187,7 +187,7 @@ private:
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
// The M95 Has No Secure Client // The M95 has no Secure Client (yet)
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//

View File

@@ -56,7 +56,7 @@ class TinyGsmMC60
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
// The MC60 Client Class // The MC60 Internal Client Class
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//

View File

@@ -50,7 +50,7 @@ class TinyGsmSim800
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
// The Sim800 Client Class // The Sim800 Internal Client Class
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//

View File

@@ -1,13 +1,13 @@
/** /**
* @file TinyGsmClientU201.h * @file TinyGsmClientUBLOX.h
* @author Volodymyr Shymanskyy * @author Volodymyr Shymanskyy
* @license LGPL-3.0 * @license LGPL-3.0
* @copyright Copyright (c) 2016 Volodymyr Shymanskyy * @copyright Copyright (c) 2016 Volodymyr Shymanskyy
* @date Nov 2016 * @date Nov 2016
*/ */
#ifndef TinyGsmClientU201_h #ifndef TinyGsmClientUBLOX_h
#define TinyGsmClientU201_h #define TinyGsmClientUBLOX_h
//#define TINY_GSM_DEBUG Serial //#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 class GsmClient : public Client
{ {
friend class TinyGsmU201; friend class TinyGsmUBLOX;
typedef TinyGsmFifo<uint8_t, TINY_GSM_RX_BUFFER> RxFifo; typedef TinyGsmFifo<uint8_t, TINY_GSM_RX_BUFFER> RxFifo;
public: public:
GsmClient() {} GsmClient() {}
GsmClient(TinyGsmU201& modem, uint8_t mux = 1) { GsmClient(TinyGsmUBLOX& modem, uint8_t mux = 1) {
init(&modem, mux); init(&modem, mux);
} }
bool init(TinyGsmU201* modem, uint8_t mux = 1) { bool init(TinyGsmUBLOX* modem, uint8_t mux = 1) {
this->at = modem; this->at = modem;
this->mux = mux; this->mux = mux;
sock_available = 0; sock_available = 0;
@@ -175,7 +175,7 @@ public:
String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED;
private: private:
TinyGsmU201* at; TinyGsmUBLOX* at;
uint8_t mux; uint8_t mux;
uint16_t sock_available; uint16_t sock_available;
bool sock_connected; 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: public:
GsmClientSecure() {} GsmClientSecure() {}
GsmClientSecure(TinyGsmU201& modem, uint8_t mux = 1) GsmClientSecure(TinyGsmUBLOX& modem, uint8_t mux = 1)
: GsmClient(modem, mux) : GsmClient(modem, mux)
{} {}
@@ -212,16 +212,16 @@ public:
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
// The U201 Modem Functions // The UBLOX Modem Functions
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
public: public:
#ifdef GSM_DEFAULT_STREAM #ifdef GSM_DEFAULT_STREAM
TinyGsmU201(Stream& stream = GSM_DEFAULT_STREAM) TinyGsmUBLOX(Stream& stream = GSM_DEFAULT_STREAM)
#else #else
TinyGsmU201(Stream& stream) TinyGsmUBLOX(Stream& stream)
#endif #endif
: stream(stream) : stream(stream)
{ {

View File

@@ -55,7 +55,7 @@ class TinyGsmXBee
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
// The XBee Client Class // The XBee Internal Client Class
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//
@@ -502,6 +502,7 @@ public:
exitCommand(); exitCommand();
return stat; return stat;
} }
String getOperator() { String getOperator() {
if (!commandMode()) return ""; // Return immediately if (!commandMode()) return ""; // Return immediately
sendAT(GF("MN")); sendAT(GF("MN"));