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(options1) .then(device => { console.log('> Name: ' + device.name); console.log('> Id: ' + device.id); console.log('> Connected: ' + device.gatt.connected); }) .catch(error => { console.log('Argh! ' + error);
@hydronics started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I tried filtering with a name. It works on mac Safari but not WebBle...