Added TestAT to XBee

This commit is contained in:
SRGDamia1
2017-10-25 12:11:09 -04:00
parent edcbc5459d
commit b3044d2762

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
*/ */