Added virtual master class

This commit is contained in:
Sara Damiano
2018-09-07 18:15:42 -04:00
parent fc9922904d
commit 56dca5185b
10 changed files with 149 additions and 79 deletions

View File

@@ -43,24 +43,10 @@ enum RegStatus {
REG_UNKNOWN = 4,
};
//============================================================================//
//============================================================================//
// Declaration of the TinyGsmMC60 Class
//============================================================================//
//============================================================================//
class TinyGsmMC60
class TinyGsmMC60 : public TinyGsmMasterModem
{
//============================================================================//
//============================================================================//
// The MC60 Internal Client Class
//============================================================================//
//============================================================================//
public:
class GsmClient : public Client
@@ -199,12 +185,6 @@ private:
RxFifo rx;
};
//============================================================================//
//============================================================================//
// The MC60 Secure Client
//============================================================================//
//============================================================================//
class GsmClientSecure : public GsmClient
{
@@ -225,11 +205,6 @@ public:
}
};
//============================================================================//
//============================================================================//
// The MC60 Modem Functions
//============================================================================//
//============================================================================//
public:
@@ -238,7 +213,7 @@ public:
#else
TinyGsmMC60(Stream& stream)
#endif
: stream(stream)
: TinyGsmMasterModem(stream), stream(stream)
{
memset(sockets, 0, sizeof(sockets));
}
@@ -614,6 +589,10 @@ public:
return waitResponse(60000L) == 1;
}
/*
* IP Address functions
*/
String getLocalIP() {
sendAT(GF("+CIFSR;E0"));
String res;
@@ -624,10 +603,6 @@ public:
return res;
}
IPAddress localIP() {
return TinyGsmIpFromString(getLocalIP());
}
/*
* Messaging functions
*/