summaryrefslogtreecommitdiffstats
path: root/conf.d/project/lua.d/smixer-test-simple.lua
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:47:08 +0200
commit4ca3244a440b798b91c252bf22e5299df98218e7 (patch)
tree9c0d386543face266dd08f7d3463f86ed179c0bf /conf.d/project/lua.d/smixer-test-simple.lua
parent7aaf36d8e729400f7efc75d7e03e162e1f262293 (diff)
Move smixer API create+attach into controller onload section
Diffstat (limited to 'conf.d/project/lua.d/smixer-test-simple.lua')
-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