summaryrefslogtreecommitdiffstats
path: root/app/api/BluetoothManager.qml
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-08-08 22:39:56 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-08-08 22:43:52 -0700
commitbf1b11ab772ad3e8afe16fd061531fbaa36c4d82 (patch)
tree16167e4d1c4342ccca5acf002c8678052634af7f /app/api/BluetoothManager.qml
parent50c1f859444b27010d56401c4310b266131dcc97 (diff)
binding: bluetooth: update subscription to events
Update the subscription to bluetooth events to the new more consistent format Bug-AGL: SPEC-819 Change-Id: I3a89f2db804794b31321a958a09d9c8a021e8b8e Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/api/BluetoothManager.qml')
-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: