We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ef6ca9 commit c7e8527Copy full SHA for c7e8527
balancer/js/ble.js
@@ -5,17 +5,15 @@ var service;
5
var characteristic;
6
var enableLogging = true;
7
8
-const serviceAdvUUID = "6e400050-b5a3-f393-e0a9-e50e24dcca9e";
9
const serviceUUID = "6e400001-b5a3-f393-e0a9-e50e24dcca9e";
10
const characteristicUUID = "6e400002-b5a3-f393-e0a9-e50e24dcca9e";
11
12
function connect(callbackOnConnect) {
13
if(enableLogging)
14
- console.log("Scanning for devices with advertised service UUID " + serviceAdvUUID );
+ console.log("Scanning for devices with advertised service UUID " + serviceUUID );
15
navigator.bluetooth.requestDevice(
16
{filters:
17
[
18
- {services: [serviceAdvUUID]},
19
{services: [serviceUUID]}
20
]
21
}
0 commit comments