diff options
author | fulup <fulup.arfoll@iot.bzh> | 2017-08-11 19:44:21 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2017-08-11 19:44:21 +0200 |
commit | b65178642727536972d0c04e53b2310be58beb2e (patch) | |
tree | f06f8773ce44f8320e9e86cee60e59e1597d6b78 /conf.d/ctl-rules/onload-control-script.lua | |
parent | c13952824e2cc110b9405e1bc9017801dd938ac0 (diff) |
Almost working version with Json Config, Lua script and sharelib callbacks.
Diffstat (limited to 'conf.d/ctl-rules/onload-control-script.lua')
-rw-r--r-- | conf.d/ctl-rules/onload-control-script.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/conf.d/ctl-rules/onload-control-script.lua b/conf.d/ctl-rules/onload-control-script.lua index f50bf7a..6cc85fa 100644 --- a/conf.d/ctl-rules/onload-control-script.lua +++ b/conf.d/ctl-rules/onload-control-script.lua @@ -78,8 +78,10 @@ function Test_Binder_Call_Sync () end -function Ping_Test(...) +function Test_Lua_Engine(request, ...) + + AFB:NOTICE ("In est_Lua_Engine"); print ("Ping_Test script arguments:"); for i,v in ipairs(arg) @@ -87,9 +89,8 @@ function Ping_Test(...) print(" -- ", tostring(v)) end - -- push response to client - AFB:success (true, 1234, "ABCD"); - + -- return OK + return 0 end |