8 local conn = ubus.connect()
10 error("Failed to connect to ubus")
24 conn:reply(req, {message="foo"});
25 print("Call to function 'hello'")
26 for k, v in pairs(msg) do
27 print("key=" .. k .. " value=" .. tostring(v))
29 end, {id = ubus.INT32, msg = ubus.STRING }
33 conn:reply(req, {message="foo1"});
34 conn:reply(req, {message="foo2"});
35 print("Call to function 'hello1'")
36 end, {id = ubus.INT32, msg = ubus.STRING }