controller id is now sent with sensor data
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user