Rename
This commit is contained in:
@@ -39,7 +39,7 @@ enum RegStatus {
|
||||
};
|
||||
|
||||
|
||||
class TinyGsmA6 : public TinyGsmMasterModem
|
||||
class TinyGsmA6 : public TinyGsmModem
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
#else
|
||||
TinyGsmA6(Stream& stream)
|
||||
#endif
|
||||
: TinyGsmMasterModem(stream), stream(stream)
|
||||
: TinyGsmModem(stream), stream(stream)
|
||||
{
|
||||
memset(sockets, 0, sizeof(sockets));
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ enum RegStatus {
|
||||
};
|
||||
|
||||
|
||||
class TinyGsmBG96 : public TinyGsmMasterModem
|
||||
class TinyGsmBG96 : public TinyGsmModem
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -206,7 +206,7 @@ public:
|
||||
#else
|
||||
TinyGsmBG96(Stream& stream)
|
||||
#endif
|
||||
: TinyGsmMasterModem(stream), stream(stream)
|
||||
: TinyGsmModem(stream), stream(stream)
|
||||
{
|
||||
memset(sockets, 0, sizeof(sockets));
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@ enum RegStatus {
|
||||
|
||||
|
||||
|
||||
class TinyGsmESP8266 : public TinyGsmMasterModem
|
||||
class TinyGsmESP8266 : public TinyGsmModem
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -198,7 +198,7 @@ public:
|
||||
#else
|
||||
TinyGsmESP8266(Stream& stream)
|
||||
#endif
|
||||
: TinyGsmMasterModem(stream), stream(stream)
|
||||
: TinyGsmModem(stream), stream(stream)
|
||||
{
|
||||
memset(sockets, 0, sizeof(sockets));
|
||||
}
|
||||
|
@@ -39,7 +39,7 @@ enum RegStatus {
|
||||
};
|
||||
|
||||
|
||||
class TinyGsmM590 : public TinyGsmMasterModem
|
||||
class TinyGsmM590 : public TinyGsmModem
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -179,7 +179,7 @@ public:
|
||||
#else
|
||||
TinyGsmM590(Stream& stream)
|
||||
#endif
|
||||
: TinyGsmMasterModem(stream), stream(stream)
|
||||
: TinyGsmModem(stream), stream(stream)
|
||||
{
|
||||
memset(sockets, 0, sizeof(sockets));
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ enum RegStatus {
|
||||
};
|
||||
|
||||
|
||||
class TinyGsmM95 : public TinyGsmMasterModem
|
||||
class TinyGsmM95 : public TinyGsmModem
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -186,7 +186,7 @@ public:
|
||||
#else
|
||||
TinyGsmM95(Stream& stream)
|
||||
#endif
|
||||
: TinyGsmMasterModem(stream), stream(stream)
|
||||
: TinyGsmModem(stream), stream(stream)
|
||||
{
|
||||
memset(sockets, 0, sizeof(sockets));
|
||||
}
|
||||
|
@@ -44,7 +44,7 @@ enum RegStatus {
|
||||
};
|
||||
|
||||
|
||||
class TinyGsmMC60 : public TinyGsmMasterModem
|
||||
class TinyGsmMC60 : public TinyGsmModem
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -213,7 +213,7 @@ public:
|
||||
#else
|
||||
TinyGsmMC60(Stream& stream)
|
||||
#endif
|
||||
: TinyGsmMasterModem(stream), stream(stream)
|
||||
: TinyGsmModem(stream), stream(stream)
|
||||
{
|
||||
memset(sockets, 0, sizeof(sockets));
|
||||
}
|
||||
|
@@ -46,7 +46,7 @@ enum RegStatus {
|
||||
//============================================================================//
|
||||
|
||||
|
||||
class TinyGsmSim800 : public TinyGsmMasterModem
|
||||
class TinyGsmSim800 : public TinyGsmModem
|
||||
{
|
||||
|
||||
//============================================================================//
|
||||
@@ -228,7 +228,7 @@ public:
|
||||
#else
|
||||
TinyGsmSim800(Stream& stream)
|
||||
#endif
|
||||
: TinyGsmMasterModem(stream), stream(stream)
|
||||
: TinyGsmModem(stream), stream(stream)
|
||||
{
|
||||
memset(sockets, 0, sizeof(sockets));
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ enum RegStatus {
|
||||
};
|
||||
|
||||
|
||||
class TinyGsmUBLOX : public TinyGsmMasterModem
|
||||
class TinyGsmUBLOX : public TinyGsmModem
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -205,7 +205,7 @@ public:
|
||||
#else
|
||||
TinyGsmUBLOX(Stream& stream)
|
||||
#endif
|
||||
: TinyGsmMasterModem(stream), stream(stream)
|
||||
: TinyGsmModem(stream), stream(stream)
|
||||
{
|
||||
memset(sockets, 0, sizeof(sockets));
|
||||
}
|
||||
|
@@ -45,7 +45,7 @@ enum XBeeType {
|
||||
};
|
||||
|
||||
|
||||
class TinyGsmXBee : public TinyGsmMasterModem
|
||||
class TinyGsmXBee : public TinyGsmModem
|
||||
{
|
||||
|
||||
public:
|
||||
@@ -211,7 +211,7 @@ public:
|
||||
#else
|
||||
TinyGsmXBee(Stream& stream)
|
||||
#endif
|
||||
: TinyGsmMasterModem(stream), stream(stream)
|
||||
: TinyGsmModem(stream), stream(stream)
|
||||
{}
|
||||
|
||||
/*
|
||||
|
@@ -197,23 +197,23 @@ String TinyGsmDecodeHex16bit(String &instr) {
|
||||
|
||||
|
||||
|
||||
class TinyGsmMasterModem
|
||||
class TinyGsmModem
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
class GsmClient : public Client
|
||||
{
|
||||
friend class TinyGsmMasterModem;
|
||||
friend class TinyGsmModem;
|
||||
};
|
||||
|
||||
|
||||
public:
|
||||
|
||||
#ifdef GSM_DEFAULT_STREAM
|
||||
TinyGsmMasterModem(Stream& stream = GSM_DEFAULT_STREAM)
|
||||
TinyGsmModem(Stream& stream = GSM_DEFAULT_STREAM)
|
||||
#else
|
||||
TinyGsmMasterModem(Stream& stream)
|
||||
TinyGsmModem(Stream& stream)
|
||||
#endif
|
||||
: stream(stream)
|
||||
{}
|
||||
|
@@ -3,12 +3,7 @@
|
||||
* DO NOT USE THIS - this is just a compilation test!
|
||||
*
|
||||
**************************************************************/
|
||||
// #define TINY_GSM_MODEM_SIM800 // Select for a SIM800, SIM900, or variant thereof
|
||||
// #define TINY_GSM_MODEM_A6 // Select for a AI-Thinker A6 or A7 chip
|
||||
// #define TINY_GSM_MODEM_M590 // Select for a Neoway M590
|
||||
// #define TINY_GSM_MODEM_UBLOX // Select for most u-blox cellular modems
|
||||
// #define TINY_GSM_MODEM_ESP8266 // Select for an ESP8266 using the DEFAULT AT COMMAND FIRMWARE
|
||||
// #define TINY_GSM_MODEM_XBEE // Select for Digi brand WiFi or Cellular XBee's
|
||||
#define TINY_GSM_MODEM_SIM800
|
||||
|
||||
#include <TinyGsmClient.h>
|
||||
|
||||
|
Reference in New Issue
Block a user