You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Ok, perfect. You can reproduce it just by occupying Espruino for a while and connecting to another Espruino that outputs data over BLE UART:

    var gatt;
    NRF.connect("fc:cc:b8:22:b0:42 random").then(function(g) {
      gatt = g;
      return gatt.getPrimaryService("6e400001-b5a3-f3­93-e0a9-e50e24dcca9e");
    }).then(function(service) {
      return service.getCharacteristic("6e400003-b5a3­-f393-e0a9-e50e24dcca9e");
    }).then(function(characteristic) {
      characteristic.on('characteristicvaluech­anged', function(event) {
        console.log("RX: "+JSON.stringify(E.toString(event.target­.value.buffer)));
      });
      return characteristic.startNotifications();
    }).then(function() {
      console.log("Done!");
    });
    setInterval(function() {
      for (var i=0;i<1000;i++);
    },50);
    
About

Avatar for Gordon @Gordon started