Maker Faire Rome 2014
Place holder for link to image
Need to put SD card image link hereSteps executed in workshop
- dpkg -i bluez_4.99-2_armhf.deb
- apt-get install bluez
- npm install -g sensortag
Parts
Presentation
Link to presentationExample code for SensorTag interfacing
var sensortag = require('sensortag'); sensortag.discover(ondiscover, "bc6a29ac437d"); function ondiscover(sensorTag) { console.log("hello Maker Faire Rome from " + sensorTag.uuid); sensorTag.on('accelerometerChange', onaccel); sensorTag.connect(onconnect); function onconnect() { sensorTag.discoverServicesAndCharacteristics(onservices); } function onservices() { sensorTag.enableAccelerometer(dummycb); sensorTag.setAccelerometerPeriod(1000); sensorTag.notifyAccelerometer(dummycb); } } function onaccel(x, y, z) { console.log("x = " + x); console.log("y = " + y); console.log("z = " + z); } function dummycb() { }
Last updated by jkridner.wordpress.com on Sun Oct 05 2014 11:05:10 GMT-0000 (UTC).