Implement set Wifi on/off.

This commit is contained in:
Valverde Antonio
2014-06-27 16:21:42 +09:00
parent 9a31fbbfca
commit 6f7fdffe3d
9 changed files with 81 additions and 1 deletions

View File

@@ -341,6 +341,16 @@ module.exports = function(options) {
)
])
})
.on('wifi.set', function(channel, responseChannel, data) {
joinChannel(responseChannel)
push.send([
channel
, wireutil.transaction(
responseChannel
, new wire.WifiSetEnabledMessage(data.enabled)
)
])
})
.on('group.invite', function(channel, responseChannel, data) {
joinChannel(responseChannel)
push.send([