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

@@ -45,7 +45,7 @@ enum XBeeType {
};
class TinyGsmXBee
class TinyGsmXBee : public TinyGsmMasterModem
{
public:
@@ -211,7 +211,7 @@ public:
#else
TinyGsmXBee(Stream& stream)
#endif
: stream(stream)
: TinyGsmMasterModem(stream), stream(stream)
{}
/*
@@ -559,6 +559,10 @@ fail:
return res;
}
/*
* IP Address functions
*/
String getLocalIP() {
if (!commandMode()) return ""; // Return immediately
sendAT(GF("MY"));
@@ -570,10 +574,6 @@ fail:
return IPaddr;
}
IPAddress localIP() {
return TinyGsmIpFromString(getLocalIP());
}
/*
* GPRS functions
*/