diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-27 13:32:56 +0200 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-27 13:32:56 +0200 |
commit | e9b532488dff41b1215a8c92820a55fe6847e2f1 (patch) | |
tree | b2e5950c3172e6b85ff89fe2b92bb55c8daa6314 | |
parent | 1951815533e516f4bfeb0749aa6056090371704d (diff) |
Readme update for controller
-rw-r--r-- | conf.d/project/lua.d/README.md | 33 | ||||
-rw-r--r-- | conf.d/project/lua.d/netbeans-aaaa-run-config.png | bin | 0 -> 163727 bytes | |||
-rw-r--r-- | conf.d/project/lua.d/onload-aaaa-01-init.lua | 2 | ||||
-rw-r--r-- | nbproject/configurations.xml | 2 |
4 files changed, 35 insertions, 2 deletions
diff --git a/conf.d/project/lua.d/README.md b/conf.d/project/lua.d/README.md new file mode 100644 index 0000000..86b60dd --- /dev/null +++ b/conf.d/project/lua.d/README.md @@ -0,0 +1,33 @@ +WARNING: controller is now independent from AAAA and thus should be imported by your binder before requesting it. + +For this your only have to provide the path where to find your controller you are in your development tree probably with something +like --binding=../../afb-controller/build/ctl-binding/afb-controller.so on the other hand if you controller was installed you +should import it from where ever you install it. + +To run this controller sample from your developpement environement use +``` + +export BUILD_DIR=build + +# with an internal MPDC (Pusic Player Daemon Client) API +afb-daemon --port=1234 --workdir=. --roothttp=../htdocs --token= --verbose \ +--alias=/monitoring:$HOME/opt/afb-monitoring \ +--ldpaths=. \ +--alias=/monitoring:/home/fulup/opt/afb-monitoring \ +--binding=../../afb-controller/$BUILD_DIR/package/lib/afb-controller.so \ +--binding=../../afb-mpdc/$BUILD_DIR/package/lib/afb-mpdc-api.so + +# with an exernal MPDC API +afb-daemon --port=1234 --workdir=. --roothttp=../htdocs --token= --verbose \ +--alias=/monitoring:$HOME/opt/afb-monitoring \ +--ldpaths=. \ +--alias=/monitoring:/home/fulup/opt/afb-monitoring \ +--binding=../../afb-controller/$BUILD_DIR/ctl-binding/afb-controller.so \ +--ws-client=unix:/var/tmp/afb-ws/mpdc + +# Note: + - Both sample make the assumption the monitoring HTML5 app is avaliable at $HOME/opt/afb-monitoring + - With second sample you should obviously have your MPDC service exposing its API with --ws-server=unix:/var/tmp/afb-ws/mpdc + - Running AAAA from Netbeans ![Sample config](netbeans-aaaa-run-config.png) + +``` diff --git a/conf.d/project/lua.d/netbeans-aaaa-run-config.png b/conf.d/project/lua.d/netbeans-aaaa-run-config.png Binary files differnew file mode 100644 index 0000000..7091a42 --- /dev/null +++ b/conf.d/project/lua.d/netbeans-aaaa-run-config.png diff --git a/conf.d/project/lua.d/onload-aaaa-01-init.lua b/conf.d/project/lua.d/onload-aaaa-01-init.lua index 8de0c24..5ebc695 100644 --- a/conf.d/project/lua.d/onload-aaaa-01-init.lua +++ b/conf.d/project/lua.d/onload-aaaa-01-init.lua @@ -40,7 +40,7 @@ function _Audio_Controller_Init(source, control) local err,result= AFB:servsync ("alsacore", "hallist", {}) if (err) then - AFB_ERROR("Fail to retrieve Audio HAL") + AFB:error("Fail to retrieve Audio HAL") else _Global_Context["registry"]=result["response"] printf("[<-- Audio_Controller_Init <--] Active HAL=%s", Dump_Table(result["response"])) diff --git a/nbproject/configurations.xml b/nbproject/configurations.xml index 9cec85a..d00c20b 100644 --- a/nbproject/configurations.xml +++ b/nbproject/configurations.xml @@ -1477,7 +1477,7 @@ <makefileType> <makeTool> <buildCommandWorkingDir>build</buildCommandWorkingDir> - <buildCommand>${MAKE} -f Makefile install</buildCommand> + <buildCommand>${MAKE} -f Makefile</buildCommand> <cleanCommand>${MAKE} -f Makefile clean</cleanCommand> <executablePath>build/CMakeFiles/feature_tests.bin</executablePath> <cTool flags="-g -fPIC -fPIC"> |