Last active
February 20, 2017 19:54
-
-
Save andreban/6c9494d20433dbc1c510e336f37bdad6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const options = { | |
filters: [{services: ['ce060000-43e5-11e4-916c-0800200c9a66']}], | |
optionalServices: [ | |
'ce060010-43e5-11e4-916c-0800200c9a66', // Information Service. | |
'ce060020-43e5-11e4-916c-0800200c9a66', // Control Service. | |
'ce060030-43e5-11e4-916c-0800200c9a66' // Rowing Service. | |
] | |
}; | |
navigator.bluetooth.requestDevice(options) | |
.then(device => { | |
// ... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment