summaryrefslogtreecommitdiffstats
path: root/BusinessLogic/README.md
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-03-08 00:24:41 +0100
committerFulup Ar Foll <fulup@iot.bzh>2017-03-08 00:24:41 +0100
commit0964e7da8576b8761e8d3d16b50cc842406c7e67 (patch)
treeb8e3ba7cb0b46cee9a12e4d77f74f34b897d8b1e /BusinessLogic/README.md
parent49533399810630031541b25407cd88498a72f6c3 (diff)
Added High Level Logic Template
Diffstat (limited to 'BusinessLogic/README.md')
-rw-r--r--BusinessLogic/README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/BusinessLogic/README.md b/BusinessLogic/README.md
new file mode 100644
index 0000000..a07f752
--- /dev/null
+++ b/BusinessLogic/README.md
@@ -0,0 +1,18 @@
+------------------------------------------------------------------------
+ AudioLogic High Level APIs
+------------------------------------------------------------------------
+
+Testing: (from project directory bindings)
+ * start binder: ~/opt/bin/afb-daemon --ldpaths=./Alsa/src/low-level-binding:./BusinessLogic/audiologic-afb.so --roothttp=htdocs
+ * connect browser on http://localhost:1234
+
+ # Subscribe event for a given board
+ http://localhost:1234/api/audio/subscribe&devid=hw:0
+
+ # Increase Volume
+ http://localhost:1234/api/audio/setvol?devid=hw:0&pcm=master&vol=50%
+
+ # Get Volume
+ http://localhost:1234/api/audio/getvol?devid=hw:0&pcm=master
+
+ \ No newline at end of file