mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +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
@@ -293,6 +293,16 @@ module.exports = function ControlServiceFactory(
|
||||
return sendTwoWay('wifi.get')
|
||||
}
|
||||
|
||||
this.setBluetoothEnabled = function(enabled) {
|
||||
return sendTwoWay('bluetooth.set', {
|
||||
enabled: enabled
|
||||
})
|
||||
}
|
||||
|
||||
this.getBluetoothStatus = function() {
|
||||
return sendTwoWay('bluetooth.get')
|
||||
}
|
||||
|
||||
window.cc = this
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user