From bf1b11ab772ad3e8afe16fd061531fbaa36c4d82 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 8 Aug 2017 22:39:56 -0700 Subject: 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 --- app/api/BluetoothManager.qml | 6 ++---- 1 file 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: -- cgit 1.2.3-korg