• Hi - this is an odd one. I get this too. It seems like you're doing everything right on the code front.

    Please could you try:

          NRF.requestDevice({ filters: [{ name: 'Puck.js ....' }] }).then(function(device) {
            return device.gatt.connect();
          }).then(function(d) {
            connected = d;
            return new Promise(r => setTimeout(r,500)); //< ---------- added this delay
          }).then(function() {
            return connected.getPrimaryService("6e400001-b5­a3-f393-e0a9-e50e24dcca9e");
          }).then(function(s) {
            return s.getCharacteristic("6e400002-b5a3-f393-­e0a9-e50e24dcca9e");
          }).then(function(c) {
         ...
    

    That's what worked well for me...

    I'm a bit busy today but I just filed an issue for this at https://github.com/espruino/Espruino/iss­ues/2008 and I'll try and get it fixed properly as soon as I can.

About

Avatar for Gordon @Gordon started