Expose identify functionality. Shows a red screen with important data.

This commit is contained in:
Simo Kinnunen
2014-03-17 19:21:34 +09:00
parent 9c50c1bcdc
commit ed5709aa04
6 changed files with 87 additions and 44 deletions

View File

@@ -81,6 +81,12 @@ module.exports = function ControlServiceFactory($rootScope, socket, TransactionS
})
return tx
}
this.identify = function() {
var tx = TransactionService.create(devices)
socket.emit('device.identify', channel, tx.channel)
return tx
}
}
controlService.forOne = function(device, channel) {