Remove bonding for now

master
Salim Blume 2022-04-07 15:58:39 -05:00
parent 31fd2344a8
commit 9eb4d8eb73
1 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@
} }
}); });
promise = promise.then(() => { /* promise = promise.then(() => {
log(JSON.stringify(gatt.getSecurityStatus())); log(JSON.stringify(gatt.getSecurityStatus()));
if (gatt.getSecurityStatus()['bonded']) { if (gatt.getSecurityStatus()['bonded']) {
log("Already bonded"); log("Already bonded");
@ -437,7 +437,7 @@
return gatt.startBonding() return gatt.startBonding()
.then(() => console.log(gatt.getSecurityStatus())); .then(() => console.log(gatt.getSecurityStatus()));
} }
}); });*/
promise = promise.then(()=>{ promise = promise.then(()=>{
if (!characteristics || characteristics.length === 0){ if (!characteristics || characteristics.length === 0){