Add lock parameter to control's rotate.

This commit is contained in:
Gunther Brunner
2015-08-25 18:46:24 +09:00
parent f179f80238
commit 0691c73ec9
2 changed files with 26 additions and 18 deletions

View File

@@ -157,9 +157,10 @@ module.exports = function ControlServiceFactory(
return sendTwoWay('device.reboot')
}
this.rotate = function(rotation) {
this.rotate = function(rotation, lock) {
return sendOneWay('display.rotate', {
rotation: rotation
rotation: rotation,
lock: lock
})
}