diff options
author | Thierry Bultel <thierry.bultel@iot.bzh> | 2019-05-28 21:18:33 +0200 |
---|---|---|
committer | Thierry Bultel <thierry.bultel@iot.bzh> | 2019-05-28 21:24:53 +0200 |
commit | 38a8e562f86c56e89570b37d35adc1eba27556c0 (patch) | |
tree | 5ace80d48a5cfc522e6c2228a232a18083f0f501 /bin | |
parent | 224f667013ae930b3698eb896889edbf1c0cf2c5 (diff) |
4a-play: uses the device given by the high level APIicefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.1halibut_8.0.6halibut_8.0.5halibut_8.0.4halibut_8.0.3halibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut_7.99.1halibut/8.0.6halibut/8.0.5halibut/8.0.4halibut/8.0.3halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.2halibut/7.99.18.99.58.99.48.99.38.99.28.99.18.0.68.0.58.0.48.0.38.0.28.0.18.0.07.99.37.99.27.99.1halibut
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 <thierry.bultel@iot.bzh>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/4a-play | 2 |
1 files changed, 1 insertions, 1 deletions
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 |