You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi, that's great. What I'd suggest is to maybe try this and see if it works:

    ...
    }).then(function(service) {
      return service.getCharacteristic(
        "039afff8-2c94-11e3-9e06-0002a5d5c51b");­
    }).then(function (c) {
      console.log("Got Characteristic");
      characteristic = c;
      characteristic.on('characteristicvaluech­anged', function(event) {
         processBrainData(event.target.value.buff­er);
      });
      return characteristic.startNotifications();
    }).then(function() {
      console.log("Connected.");
    });
    
    function processBrainData(buf) {
      var d = new Uint8Array(buf);
      print(d.slice().map(x=>x.toString(16).pa­dStart(2,0)).join(" "));
    }
    

    At least then you should get a hex dump whenever the data changes. Maybe you could post the results up here and it might give us some idea of how to pull the data out.

    Do you have a link to the Arduino forum? Did they give any hints about how to decode the data?

About

Avatar for Gordon @Gordon started