This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

HDL Buspro gateway integration with LM5
#10
Use this script (resident, sleep time = 0) to catch HDL messages. You need to configure your gateway to forward messages to LM. You will have to check opcode and additional field values to determine the HDL packet contents.

Code:
if not sock then   require('user.hdl')   sock = socket.udp()   sock:settimeout(60)   sock:setsockname('*', 6000)   HDL.init() end data = sock:receive() if data then   packet, err = HDL.decode(data)   if packet then     packet.additional = lmcore.strtohex(packet.additional)     log('HDL packet', packet)   else     log('HDL error', err)   end end
Reply


Messages In This Thread
RE: HDL Buspro gateway integration with LM5 - by admin - 03.06.2025, 12:43

Forum Jump: