Implement enable/disable bluetooth of device (#754)

Signed-off-by: Jussi Vatjus-Anttila <jussiva@gmail.com>
This commit is contained in:
Jussi Vatjus-Anttila
2024-01-29 13:06:57 +02:00
committed by GitHub
parent 63ad4f138e
commit e958a599cb
8 changed files with 163 additions and 2 deletions

View File

@@ -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
}