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-b5a3-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/issues/2008 and I'll try and get it fixed properly as soon as I can.
@Gordon 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.
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:
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/issues/2008 and I'll try and get it fixed properly as soon as I can.