diff options
author | Loïc Collignon <loic.collignon@iot.bzh> | 2018-07-20 15:56:23 +0200 |
---|---|---|
committer | Thierry Bultel <thierry.bultel@iot.bzh> | 2019-04-24 14:18:11 +0200 |
commit | 24dd246d1ee3a53434dd1f21aa2afbeb55618ead (patch) | |
tree | 9edf3297051cf80b1d5b3f0b00dc12b57f162636 /bin/4a-api | |
parent | 15f0344df8bfbd8daf7a383bfccfa0d3cd7d75b9 (diff) |
Added a 4a-info script use to test if 4a can work
Test various things to check if 4a can work in this environment.
Change-Id: Ica4b739d7e8c6401db05a3b9b4d6ef9048ca1002
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'bin/4a-api')
-rwxr-xr-x | bin/4a-api | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/4a-api b/bin/4a-api new file mode 100755 index 0000000..4a26121 --- /dev/null +++ b/bin/4a-api @@ -0,0 +1,23 @@ +#!/bin/bash + +WS4A=unix:/run/user/0/apis/ws/ahl-4a + +afb-client-demo -H -d $WS4A get_roles "" + +# commandes HAL manager: +# 4a-hal-manager loaded +# 4a-hal-manager loaded { "verbose": true } <= +metadata +# 4a-hal-manager loaded { "all": true } <= hals avec un json +# 4a-hal-manager loaded { "all": true, "verbose":true } + +# open/close multimedia +#afb-client-demo -H -d $WS4A << EOF +#multimedia { "action":"open" } +#multimedia { "action":"close" } +#EOF + +# volume multimedia +#afb-client-demo -H -d $WS4A << EOF +#multimedia { "action":"open" } +#multimedia { "action":"close" } +#EOF |