Browse Source

bluetooth feature

v_master
Dawid Cieszynski 7 years ago
parent
commit
dca93e053d
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      src/TinyGsmClientSIM800.h

+ 22
- 0
src/TinyGsmClientSIM800.h View File

@ -331,6 +331,28 @@ public:
return true; return true;
} }
bool enableBluetooth() {
uint16_t state;
sendAT(GF("+BTPOWER=1"));
if (waitResponse() != 1) {
return false;
}
return true;
}
bool disableBluetooth() {
uint16_t state;
sendAT(GF("+BTPOWER=0"));
if (waitResponse() != 1) {
return false;
}
return true;
}
/* /*
During sleep, the SIM800 module has its serial communication disabled. In order to reestablish communication During sleep, the SIM800 module has its serial communication disabled. In order to reestablish communication
pull the DRT-pin of the SIM800 module LOW for at least 50ms. Then use this function to disable sleep mode. pull the DRT-pin of the SIM800 module LOW for at least 50ms. Then use this function to disable sleep mode.


Loading…
Cancel
Save