Added XBee (untested)

This commit is contained in:
SRGDamia1
2017-04-09 01:39:49 -04:00
parent 206044a1ba
commit 3b0e70441d
3 changed files with 555 additions and 2 deletions

View File

@@ -343,11 +343,11 @@ public:
sendAT(GF("+SAPBR=3,1,\"APN\",\""), apn, '"');
waitResponse();
if (!strcmp(user, "")) {
if (user) {
sendAT(GF("+SAPBR=3,1,\"USER\",\""), user, '"');
waitResponse();
}
if (!strcmp(pwd, "")) {
if (pwd) {
sendAT(GF("+SAPBR=3,1,\"PWD\",\""), pwd, '"');
waitResponse();
}