Browse Source

Added TestAT to XBee

v_master
SRGDamia1 7 years ago
parent
commit
b3044d2762
1 changed files with 16 additions and 1 deletions
  1. +16
    -1
      src/TinyGsmClientXBee.h

+ 16
- 1
src/TinyGsmClientXBee.h View File

@ -190,7 +190,18 @@ public:
return true; 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; return false;
} }
@ -205,6 +216,10 @@ public:
return ret_val; return ret_val;
} }
bool hasSSL() {
return true;
}
/* /*
* Power functions * Power functions
*/ */


Loading…
Cancel
Save