From 38a8e562f86c56e89570b37d35adc1eba27556c0 Mon Sep 17 00:00:00 2001 From: Thierry Bultel Date: Tue, 28 May 2019 21:18:33 +0200 Subject: 4a-play: uses the device given by the high level API 4a-client requests 4A for a role, thus this commit parses the json output to get the device name to use. Bug-AGL: SPEC-2467 Change-Id: I51ce699aa91d025e5f90132f42b8ebb4c576991d Signed-off-by: Thierry Bultel --- bin/4a-play | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/4a-play b/bin/4a-play index 7650d4d..f54fba7 100755 --- a/bin/4a-play +++ b/bin/4a-play @@ -43,7 +43,7 @@ fi if [ "$IS_4A_DEVICE" == "1" ]; then log "The selected card (hw:$CARDID) is handle by 4a, call open on '$ROLE'" - 4a-client ahl-4a "$ROLE" '{ "action": "open" }' + DEVICE=$(4a-client ahl-4a "$ROLE" '{ "action": "open" }' | tail -n +2 | jq '.response.device_uri') # BUG: afb-client-demo does not exit an exit code different from zero when api return an error #if [ "$?" -ne "0" ]; then -- cgit 1.2.3-korg