mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Implement enable/disable bluetooth of device (#754)
Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
This commit is contained in:
committed by
GitHub
parent
63ad4f138e
commit
e958a599cb
@@ -766,6 +766,26 @@ module.exports = function(options) {
|
||||
)
|
||||
])
|
||||
})
|
||||
.on('bluetooth.set', function(channel, responseChannel, data) {
|
||||
joinChannel(responseChannel)
|
||||
push.send([
|
||||
channel
|
||||
, wireutil.transaction(
|
||||
responseChannel
|
||||
, new wire.BluetoothSetEnabledMessage(data.enabled)
|
||||
)
|
||||
])
|
||||
})
|
||||
.on('bluetooth.get', function(channel, responseChannel) {
|
||||
joinChannel(responseChannel)
|
||||
push.send([
|
||||
channel
|
||||
, wireutil.transaction(
|
||||
responseChannel
|
||||
, new wire.BluetoothGetStatusMessage()
|
||||
)
|
||||
])
|
||||
})
|
||||
.on('group.invite', function(channel, responseChannel, data) {
|
||||
joinChannel(responseChannel)
|
||||
push.send([
|
||||
|
||||
Reference in New Issue
Block a user