You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
499 B
Lua

-- Two Port Digiline Hub
-- Requires two lua controllers
local me = "b"
local other = "a"
if event.type == "program" then
digiline_send( "display", "test" )
elseif event.type == "digiline" then
if event.channel == ("hub_"..me) then
print( "A->B->"..event.msg.channel )
digiline_send( "hub_" .. me .. other, event.msg )
elseif event.channel == ("hub_"..other .. me) then
print( "A->B->" .. event.msg.channel )
digiline_send( event.msg.channel, event.msg.payload )
end
end