28.03.2017, 08:31
Try removing all leading spaces like this:
Code:
if not client then
function statushandler(status)
if status == 0x00 then
-- KNX Connected
elseif status == 0xFF then
-- KNX Disconnected
end
end
client = require('localbus').new(1)
client:sethandler('status', statushandler)
end
client:step()