diff --git a/src/TinyGsmClientXBee.h b/src/TinyGsmClientXBee.h index 259f241..3131497 100644 --- a/src/TinyGsmClientXBee.h +++ b/src/TinyGsmClientXBee.h @@ -190,7 +190,18 @@ public: return true; } - bool testAT(unsigned long timeout = 10000L) { // not supported + bool testAT(unsigned long timeout = 10000L) { + for (unsigned long start = millis(); millis() - start < timeout; ) { + if (commandMode()) + { + sendAT(); + if (waitResponse(200) == 1) { + return true; + } + exitCommand(); + } + delay(100); + } return false; } @@ -205,6 +216,10 @@ public: return ret_val; } + bool hasSSL() { + return true; + } + /* * Power functions */