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(
    }).then(function (c) {
      console.log("Got Characteristic");
      characteristic = c;
      characteristic.on('characteristicvaluech­anged', function(event) {
      return characteristic.startNotifications();
    }).then(function() {
    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?


Avatar for Gordon @Gordon started