Added virtual master class
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user