diff options
author | fulup <fulup.arfoll@iot.bzh> | 2017-08-15 12:48:59 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2017-08-15 12:48:59 +0200 |
commit | e8b7ffa70194d1cc3ef4cc52bb0ace9f133514cf (patch) | |
tree | 63670aff03ca38b0a1da102f23e7223997f5b1f3 /conf.d/project/lua.d/onload-audio-controls.lua | |
parent | 96f0057d65fbb90d9faa02a3ae4ae37b357094db (diff) |
docall working with simple table
Diffstat (limited to 'conf.d/project/lua.d/onload-audio-controls.lua')
-rw-r--r-- | conf.d/project/lua.d/onload-audio-controls.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/conf.d/project/lua.d/onload-audio-controls.lua b/conf.d/project/lua.d/onload-audio-controls.lua index eb6a61b..2fbf4f5 100644 --- a/conf.d/project/lua.d/onload-audio-controls.lua +++ b/conf.d/project/lua.d/onload-audio-controls.lua @@ -19,10 +19,11 @@ --]] function Audio_Init_CB (status, result, context) - print ("***** result=", Dump_Table(result)) - print ("***** context=", Dump_Table(context)) + print ("--inlua:Audio_Init_CB-- result=", Dump_Table(result)) + print ("--inlua:Audio_Init_CB-- context=", Dump_Table(context)) - -- AFB:notice ("--LUA:Audio_Init_Hal result=%s context=%s", result, context) + -- (Fulup Bug) AFB:debug ("Audio_Init_Hal result=%s context=%s", result, context) + AFB:debug ("Audio_Init_Hal result=%s context=%s", {["ret1"]=5678, ["ret2"]="abcd"}, context) end @@ -37,12 +38,12 @@ end function Audio_Set_Navigation(args, query) - AFB:notice ("--LUA:Audio_Set_Use_Case args=%s query=%s", args, query); + AFB:notice ("LUA:Audio_Set_Use_Case args=%s query=%s", args, query); -- synchronous call to alsacore service local error,data= AFB:callsync ('alsacore', 'ping', {}) if (error) then - AFB:error ("--LUA:Audio_Set_Use_Case FAIL args=%s", args) + AFB:error ("LUA:Audio_Set_Use_Case FAIL args=%s", args) else AFB:notice ("--LUA:Audio_Set_Use_Case DONE args=%s response=%s", args, data["response"]) end |