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

@@ -46,7 +46,7 @@ enum RegStatus {
//============================================================================//
class TinyGsmSim800
class TinyGsmSim800 : public TinyGsmMasterModem
{
//============================================================================//
@@ -228,7 +228,7 @@ public:
#else
TinyGsmSim800(Stream& stream)
#endif
: stream(stream)
: TinyGsmMasterModem(stream), stream(stream)
{
memset(sockets, 0, sizeof(sockets));
}
@@ -602,6 +602,10 @@ public:
return true;
}
/*
* IP Address functions
*/
String getLocalIP() {
sendAT(GF("+CIFSR;E0"));
String res;
@@ -614,10 +618,6 @@ public:
return res;
}
IPAddress localIP() {
return TinyGsmIpFromString(getLocalIP());
}
/*
* Messaging functions
*/