Browse Source

Mostly whitespace changes

v_master
SRGDamia1 6 years ago
parent
commit
8ddb4c39fc
10 changed files with 58 additions and 57 deletions
  1. +3
    -3
      src/TinyGsmClient.h
  2. +2
    -2
      src/TinyGsmClientA6.h
  3. +8
    -8
      src/TinyGsmClientBG96.h
  4. +1
    -1
      src/TinyGsmClientESP8266.h
  5. +1
    -1
      src/TinyGsmClientM590.h
  6. +10
    -10
      src/TinyGsmClientM95.h
  7. +8
    -8
      src/TinyGsmClientMC60.h
  8. +8
    -8
      src/TinyGsmClientSIM800.h
  9. +15
    -15
      src/TinyGsmClientUBLOX.h
  10. +2
    -1
      src/TinyGsmClientXBee.h

+ 3
- 3
src/TinyGsmClient.h 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 TinyGsmU201::GsmClient TinyGsmClient;
typedef TinyGsmU201::GsmClientSecure TinyGsmClientSecure;
typedef TinyGsmUBLOX TinyGsm;
typedef TinyGsmUBLOX::GsmClient TinyGsmClient;
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


+ 2
- 2
src/TinyGsmClientA6.h 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!
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//


+ 8
- 8
src/TinyGsmClientBG96.h View File

@ -9,8 +9,8 @@
#ifndef TinyGsmClientBG96_h #ifndef TinyGsmClientBG96_h
#define 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) #if !defined(TINY_GSM_RX_BUFFER)
#define TINY_GSM_RX_BUFFER 64 #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: private:
TinyGsmBG96* at; 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;
}; };
//============================================================================// //============================================================================//


+ 1
- 1
src/TinyGsmClientESP8266.h View File

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


+ 1
- 1
src/TinyGsmClientM590.h View File

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


+ 10
- 10
src/TinyGsmClientM95.h View File

@ -9,8 +9,8 @@
#ifndef TinyGsmClientM95_h #ifndef TinyGsmClientM95_h
#define 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) #if !defined(TINY_GSM_RX_BUFFER)
#define TINY_GSM_RX_BUFFER 64 #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; String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED;
private: 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)
//============================================================================// //============================================================================//
//============================================================================// //============================================================================//


+ 8
- 8
src/TinyGsmClientMC60.h View File

@ -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; String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED;
private: 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;
}; };
//============================================================================// //============================================================================//


+ 8
- 8
src/TinyGsmClientSIM800.h View File

@ -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; String remoteIP() TINY_GSM_ATTR_NOT_IMPLEMENTED;
private: 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;
}; };
//============================================================================// //============================================================================//


+ 15
- 15
src/TinyGsmClientUBLOX.h 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
#define TinyGsmClientU201_h
#ifndef TinyGsmClientUBLOX_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)
{ {


+ 2
- 1
src/TinyGsmClientXBee.h 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"));


Loading…
Cancel
Save