• I tried filtering with a name. It works on mac Safari but not WebBle...

        let filters = [];
        let options1 = {};
        // if (1) {
        //   options1.acceptAllDevices = true;
        // }
        if (1) {
          filters.push({name: 'Bluefruit HRM'});
        }
    
        options1.filters = filters;
    
        console.log('Requesting Bluetooth Device...');
        console.log('with ' + JSON.stringify(options1));
    
        navigator.bluetooth.requestDevice(optionĀ­s1)
        .then(device => {
          console.log('> Name:             ' + device.name);
          console.log('> Id:               ' + device.id);
          console.log('> Connected:        ' + device.gatt.connected);
        })
        .catch(error => {
          console.log('Argh! ' + error);
    
About

Avatar for hydronics @hydronics started