summaryrefslogtreecommitdiffstats
path: root/conf.d/project/lua.d/doscript-helloworld.lua
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-08-21 10:23:18 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-08-21 10:23:18 +0200
commit88d0b8c02eaaac8843f184e379fc5a19250295e5 (patch)
tree4893d2b5cb0fdbddf0357ebd7d32009e73856cec /conf.d/project/lua.d/doscript-helloworld.lua
parentba709f088f5a4718b7096003ab19083af4681155 (diff)
parentd51d083be8e34000cd00ce979445eacb45a16e97 (diff)
Merge branch 'fulup-dev'
Change-Id: I7dc6859767ac5919cf383e33bd2cf3a98698d9b4
Diffstat (limited to 'conf.d/project/lua.d/doscript-helloworld.lua')
-rw-r--r--conf.d/project/lua.d/doscript-helloworld.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/conf.d/project/lua.d/doscript-helloworld.lua b/conf.d/project/lua.d/doscript-helloworld.lua
index b70ba8d..a06c3db 100644
--- a/conf.d/project/lua.d/doscript-helloworld.lua
+++ b/conf.d/project/lua.d/doscript-helloworld.lua
@@ -21,16 +21,16 @@
--]]
-function helloworld (request, query)
+local function helloworld (request, query)
- AFB:notice ("LUA HelloWorld: simple test query=%s", query);
+ AFB:notice ("LUA HelloWorld: Simple test query=%s", query);
if (query == nil) then
- AFB:error ("LUA HelloWorld:FX query should not be empty");
+ AFB:notice ("LUA HelloWorld:FX query should not be empty");
AFB:fail (request, "LUA HelloWorld: query should not be empty");
else
- AFB:error ("LUA HelloWorld:OK query=%s", query);
- AFB:sucess (request, {arg0="Demat", arg1="Bonjours", arg2="Gootentag", arg3="Morning"});
+ AFB:notice ("LUA HelloWorld:OK query=%s", query);
+ AFB:success (request, {arg0="Demat", arg1="Bonjours", arg2="Gootentag", arg3="Morning"});
end
end \ No newline at end of file