This will enable us to rewrite a lot of internal software in a much more efficient way, but will also make it possible to expose full networking stack in the Logic. You will be able to code things like:
Code: Alles auswählen
local srv = tcp.socket()
srv:bind(1234)
srv:mode('line')
srv:on('connect',function(skt,addr,port)
  print('Connection from '..addr..':'..port)
  skt:on('line',function(data)
    print('Received: '..data)
    skt:send('You wrote: ' .. data)
  end
  skt:on('error',function(err)
    print('ERROR: '..error)
  end
  skt:on('close',function()
    print('CLOSED')
  end
  skt:send('Type something!')
end
srv:listen()
Other example is for timers, that will be independent from "DELAY" and "TIMER" prefixes and way more efficient:
Code: Alles auswählen
local t = timer.periodic(1,function()
  print('Another second')
end)
I hope you like it and it will enable you to do things we didn't ever though about!





 Offizieller KNX Partner
  Offizieller KNX Partner 
