Skip to content

Commit

Permalink
Update ble-acc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
forty4 committed Aug 19, 2014
1 parent 469e5d7 commit 9a621dd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion example/ble-acc.js
@@ -1,7 +1,13 @@
'use strict';

// NOTE: sensorjs-ble is required (npm install sensorjs-ble)
var connect = require('../'),
sensorApp = connect.sensor,
ble = sensorApp.getNetwork('ble');
bleSensor = require('sensorjs-ble'),
ble;

sensorApp.addSensorPackage(bleSensor);
ble = sensorApp.getNetwork('ble');

var app = connect().
use(function (data, next) { // custom middleware
Expand Down

0 comments on commit 9a621dd

Please sign in to comment.