You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
Hi! I would like to ask if there's a way to check bluetooth state is on or off?
I try switching the windows bluetooth on and off, but it's always stay in the state of "poweredOn".
Even when i try relaunching with bluetooth state off, it's still detect as "poweredOn".
This is not supported. If you want to implement it, that'd have to be implemented in BLEServer first. Then you'd need to adapt the bindings.js file accordingly.
I don't have any intent to implement it, but if you send a PR I am willing to spend the time to review it and eventually merge it.
Hi! I would like to ask if there's a way to check bluetooth state is on or off?
I try switching the windows bluetooth on and off, but it's always stay in the state of "poweredOn".
Even when i try relaunching with bluetooth state off, it's still detect as "poweredOn".
noble.on('stateChange', function(state) {
console.log(state);
if (state === 'poweredOn') {
noble.startScanning();
} else {
noble.stopScanning();
}
});
The text was updated successfully, but these errors were encountered: