summaryrefslogtreecommitdiffstats
path: root/conf.d/project/lua.d
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2018-06-06 11:47:08 +0200
committerfulup <fulup.arfoll@iot.bzh>2018-06-06 11:57:25 +0200
commit1594606d160d61153cf2396befdefdcf24a0b4eb (patch)
tree726645b48d3b0b3bc157ed6b1007bbc10f4e3791 /conf.d/project/lua.d
parent7aaf36d8e729400f7efc75d7e03e162e1f262293 (diff)
Move smixer API create+attach into controller onload section
Diffstat (limited to 'conf.d/project/lua.d')
-rw-r--r--conf.d/project/lua.d/smixer-test-simple.lua12
1 files changed, 2 insertions, 10 deletions
diff --git a/conf.d/project/lua.d/smixer-test-simple.lua b/conf.d/project/lua.d/smixer-test-simple.lua
index 3a5dc98..99893c1 100644
--- a/conf.d/project/lua.d/smixer-test-simple.lua
+++ b/conf.d/project/lua.d/smixer-test-simple.lua
@@ -37,7 +37,6 @@ end
function _mixer_simple_test_ (source, args)
do
-
-- Mixer UID is used as API name
-- ==================== Default rate ===========================
@@ -220,16 +219,9 @@ function _mixer_simple_test_ (source, args)
}
- -- direct LUA call because controller cannot call its own API from AFB:servsync
- error,result= smix:_mixer_new_ (source, {["uid"]="MyMixer"})
- if (error ~= 0) then
- AFB:error (source, "--InLua-- smix:_mixer_new_ fail config=%s", Dump_Table(result))
- goto OnErrorExit
- else
- AFB:notice (source, "--InLua-- smix:_mixer_new_ done\n")
- end
- error,result= AFB:servsync(source, "MyMixer", "attach", MyTestHal)
+
+ error,result= AFB:servsync(source, "smixer", "attach", MyTestHal)
if (error) then
AFB:error (source, "--InLua-- API MyMixer/attach fail error=%d", error)
goto OnErrorExit