controller id is now sent with sensor data

This commit is contained in:
Senad Uka
2016-02-14 12:08:36 +01:00
parent 4b1873619b
commit 2156651cb2
3 changed files with 10 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
Template.log.helpers({
sensorDataCollection: function() {
return SensorData.find({}, {
var controllerId = Session.get('controller_id');
return SensorData.find({ controllerId: controllerId }, {
sort: {
created_at: -1
}