Implement set Wifi on/off.

This commit is contained in:
Valverde Antonio
2014-06-27 15:57:32 +09:00
parent df170073ac
commit 9a07c1bb77
8 changed files with 80 additions and 0 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([