• I'm not sure requestDevice should return namePrefix (or services?) - it'd be worth taking a look at what's done in the puck.js library: https://github.com/espruino/espruino.git­hub.io/blob/master/js/puck.js#L162

    I think even the following would work fine:

    navigator.bluetooth.requestDevice({
            filters:[
              { namePrefix: 'Puck.js' },
            ]}).then(function(device) {
           return device.gatt.connect();
        }).then(function(server) {
    
About

Avatar for Gordon @Gordon started