summaryrefslogtreecommitdiffstats
path: root/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a
diff options
context:
space:
mode:
authorStéphane Desneux <stephane.desneux@iot.bzh>2018-11-28 12:32:37 +0100
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-11-29 08:49:00 +0000
commit32527bb516942793677f8efe33a70a3192ec841e (patch)
treefbb92b466eb3ef00ee91dec712fa156a277b92ed /meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a
parent36f277626f82cf4ac660388d6534eb414c51bd3a (diff)
4a: adjust 4a_wait_bt.sh due to changes in bluetooth-manager API
The verb 'power' is now replaced by 'adapter_state'. The response object is also different (no compatibility with older API). Bug-AGL: SPEC-1630 Change-Id: I2e08c33e2936d93cfdec0c498570c77177a4b81e Signed-off-by: Stéphane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a')
-rwxr-xr-xmeta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh b/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh
index a1df1ea0..9dec4350 100755
--- a/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh
+++ b/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/files/4a_wait_bt.sh
@@ -64,9 +64,9 @@ function waitloop() {
# wait for bluetooth-service to return something
while havetime; do
- res=$(afb-client-demo -d unix:/run/user/$UID/apis/ws/Bluetooth-Manager power true)
+ res=$(afb-client-demo -d unix:/run/user/$UID/apis/ws/Bluetooth-Manager adapter_state true)
[[ "$res" =~ \"response\":(.*)}$ ]] && res=${BASH_REMATCH[1]}
- [[ "$res" == '{"power":"on"}' ]] && {
+ [[ "$res" =~ \"powered\":true ]] && {
echo "Bluetooth-Manager/power: $res"
break
}