From: Matt Ranostay Date: Wed, 9 Aug 2017 05:39:56 +0000 (-0700) Subject: binding: bluetooth: update subscription to events X-Git-Tag: 4.99.1~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=bf1b11ab772ad3e8afe16fd061531fbaa36c4d82;p=apps%2Fmediaplayer.git 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 --- 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: