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

@@ -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([