You are reading a single comment by @psc1988 and its replies. Click here to read the full conversation.
  • Hi Gordon,

    thanks for your answer.

    I have been able to establish a Bluetooth connection with the device. Found a service and characteristics UUID in an Arduino forum.

    However, how I should read the data now (with what code), I'm stumped. Had tried it with the combination of the module suggested by you and about the known to me BLE connection setup in the WEB IDE.

    var gatt,characteristic;
    NRF.requestDevice({ filters: [{ adress: 'c4:64:e3:e8:d6:e9' }] }).then(function(device) {
      return device.gatt.connect();
    }).then(function(g) {
      gatt = g;
      return gatt.getPrimaryService(
    }).then(function(service) {
      return service.getCharacteristic(
    }).then(function (c) {
      console.log("Got Characteristic");
      characteristic = c;
    function startReading() {
      var busy = false;
      var i = setInterval(function() {
        if (!gatt.connected) {
        if (busy) return;
        busy = true;
        function processBrainData(data) {
         console.log(data.field, data.value);
       }   brain.on('data', processBrainData);
      }, 50);

Avatar for psc1988 @psc1988 started