empatica-e4-client

1.0.4 • Public • Published

empatica-e4-client

empatica-e4-client is a node.js module, which can communicate with Empatica BLE Server to fetch the sensor stream data from the EmpaticaE4 device.

Intruction to setup the Emaptica BLE Server is provided in link

Installation

cd <project_path>
$ npm install empatica-e4-client

Subscribe Options

EmpaticaE4.E4_ACC   //3-axis accleration
EmpaticaE4.E4_BVP   //Blood Volume Pulse
EmpaticaE4.E4_GSR   //Galvanic Skin Response
EmpaticaE4.E4_TEMP  //Skin Temperature
EmpaticaE4.E4_IBI   //Interbeat Interval
EmpaticaE4.E4_BATT  //Device Battery
EmpaticaE4.E4_TAG   //Device Tag

Demo

var EmpaticaE4 = require('empatica_e4-client');
var dev1 = new EmpaticaE4();
 
var portNumber  = 28000;
var ipAddress   = '127.0.0.1';
var deviceID    = 'XX1234';        //Empatica E4 device ID 
dev1.connect(portNumber ,ipAddress, deviceID, function(data){  
    var sensorData = EmpaticaE4.getString(data);
    console.log(sensorData);
});
setTimeout(function() {
    dev1.subscribe(EmpaticaE4.E4_BVP);
}, 1000);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    1
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0

Package Sidebar

Install

npm i empatica-e4-client

Weekly Downloads

1

Version

1.0.4

License

ISC

Last publish

Collaborators

  • amsainju
  • htil
  • pwstegman