Bump ubus-2016-07-02-053be7df871e05478284235732f8b0608089512f

This commit is contained in:
jbnadal
2016-12-06 17:44:32 +01:00
parent c59ca12c5b
commit 2cdc93987e
39 changed files with 7305 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/usr/bin/env lua
--[[
A demo of ubus subscriber binding. Should be run after publisher.lua
--]]
require "ubus"
require "uloop"
uloop.init()
local conn = ubus.connect()
if not conn then
error("Failed to connect to ubus")
end
local sub = {
notify = function( msg )
print("Count: ", msg["count"])
end,
}
conn:subscribe( "test", sub )
uloop.run()