Disable Phone Call functions

This commit is contained in:
Volodymyr Shymanskyy
2017-09-11 18:51:23 +03:00
parent c205fe0a3f
commit d50a3b3f53

View File

@@ -387,7 +387,11 @@ public:
String getLocalIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; String getLocalIP() TINY_GSM_ATTR_NOT_IMPLEMENTED;
IPAddress localIP() TINY_GSM_ATTR_NOT_IMPLEMENTED; IPAddress localIP() {
IPAddress res;
res.fromString(getLocalIP());
return res;
}
/* /*
* Phone Call functions * Phone Call functions
@@ -395,22 +399,13 @@ public:
bool setGsmBusy(bool busy = true) TINY_GSM_ATTR_NOT_AVAILABLE; bool setGsmBusy(bool busy = true) TINY_GSM_ATTR_NOT_AVAILABLE;
bool callAnswer() { bool callAnswer() TINY_GSM_ATTR_NOT_AVAILABLE;
sendAT(GF("A"));
return waitResponse() == 1;
}
bool callNumber(const String& number) { bool callNumber(const String& number) TINY_GSM_ATTR_NOT_AVAILABLE;
sendAT(GF("D"), number);
return waitResponse() == 1;
}
bool callRedial() TINY_GSM_ATTR_NOT_AVAILABLE; bool callRedial() TINY_GSM_ATTR_NOT_AVAILABLE;
bool callHangup(const String& number) { bool callHangup() TINY_GSM_ATTR_NOT_AVAILABLE;
sendAT(GF("H"), number);
return waitResponse() == 1;
}
/* /*
* Messaging functions * Messaging functions