summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/api/BluetoothManager.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/api/BluetoothManager.qml b/app/api/BluetoothManager.qml
index 514a395..f102fe2 100644
--- a/app/api/BluetoothManager.qml
+++ b/app/api/BluetoothManager.qml
@@ -144,10 +144,8 @@ WebSocket {
switch (status) {
case WebSocket.Open:
console.debug("onStatusChanged: Open")
- sendSocketMessage("eventadd", { "tag" : "device_updated", "name" : "device_updated" })
- sendSocketMessage("eventsub", { "tag" : "device_updated" })
- sendSocketMessage("eventadd", { "tag" : "connection", "name" : "connection" })
- sendSocketMessage("eventsub", { "tag" : "connection" })
+ sendSocketMessage("subscribe", { value : "device_updated" })
+ sendSocketMessage("subscribe", { value : "connection" })
sendSocketMessage("discovery_result", 'None')
break
case WebSocket.Error: