diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-04-19 18:54:14 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2018-05-14 18:35:15 -0700 |
commit | 4983b81778f718386edd1189a242604f2a78b016 (patch) | |
tree | 3383849e3837868218794b164257cb005fee57c1 /app | |
parent | 4feaf0e082f33635063c30ab7a95c36793b62110 (diff) |
mediaplayer: bluetooth: update discovery_result response to new format
Response is switched to map with "list" member to be more consistent with
other binding APIs, and to make libqtappfw access easier
Bug-AGL: SPEC-1385
Change-Id: I10c315827ce6c1c47be5123e95a3f88e06ea4515
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/api/BluetoothManager.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/api/BluetoothManager.qml b/app/api/BluetoothManager.qml index 63e3e60..ea33dfe 100644 --- a/app/api/BluetoothManager.qml +++ b/app/api/BluetoothManager.qml @@ -66,10 +66,10 @@ WebSocket { var address = "" if (request.info == "BT - Scan Result is Displayed") { - for (var i = 0; i < response.length; i++) { - var data = response[i] + for (var i = 0; i < response.list.length; i++) { + var data = list.response[i] if (data.Connected == "True" && data.UUIDs.indexOf(avrcp_uuid) >= 0) { - address = response[i].Address + address = data.Address console.debug("Connected Device: " + address) root.connected = true |