Created
August 27, 2018 00:19
-
-
Save loginov-rocks/fa0478f085410d1f59ede2f653af0e5c to your computer and use it in GitHub Desktop.
How to make a web app for your own Bluetooth Low Energy device? Step 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Enable the characteristic changes notification | |
function startNotifications(characteristic) { | |
log('Starting notifications...'); | |
return characteristic.startNotifications(). | |
then(() => { | |
log('Notifications started'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment