X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=lua%2Ftest.lua;h=07e62c6ac5341d9cc0aecbf110284d57c3d9b2ce;hb=0f793d3a457af9afa8bc4eae2dff855cd7e6a192;hp=d9ecb4535affb1a0ce8bf4d62b69899626d1d922;hpb=1e3220d9df655c2b2ed935e128933dbf9507c9fa;p=project%2Fubus.git diff --git a/lua/test.lua b/lua/test.lua index d9ecb45..07e62c6 100755 --- a/lua/test.lua +++ b/lua/test.lua @@ -20,9 +20,12 @@ local my_method = { }, test = { hello = { - function(req) + function(req, msg) conn:reply(req, {message="foo"}); print("Call to function 'hello'") + for k, v in pairs(msg) do + print("key=" .. k .. " value=" .. tostring(v)) + end end, {id = ubus.INT32, msg = ubus.STRING } }, hello1 = {