sandeepmistry / node-sensortag

Node.js lib for the TI SensorTag
MIT License
218 stars 111 forks source link

Read all sensors at once #76

Closed meeximum closed 8 years ago

meeximum commented 8 years ago

Hi,

what would be the best approach to read all values at once? I tried with async.parallel() but it doesn't worked :-/

regards Meex

sandeepmistry commented 8 years ago

@meeximum could you please share what you've tried so far?

Maybe something like test.js but to enable notifications on each sensor instead and listen for events.

meeximum commented 8 years ago

@sandeepmistry ok when I do like in test.js, I just need to comment out the setTimeout(function() {} to make it run forever? In the test examples the notification will stop afer 5000ms?

sandeepmistry commented 8 years ago

@meeximum see something like this: https://github.com/tigoe/BluetoothLE-Examples/blob/master/sensorTag/sensorTagExample/sensortagIRTemperature.js

OtisHarrison24 commented 8 years ago

@meeximum did you get your to run forever?