03.01.2017, 12:07
Code:
mioff = string.char(0x80,0x00,0x00,0x00,0x11,0x00,0x31,0x00,0x00,0x08,0x04,0x02,0x00,0x00,0x00)
ip = '192.168.1.255'
port = 48899
local sock = require('socket').udp()
if sock then
sock:sendto(mioff,ip,port)
sock:settimeout(200)
data = sock:receive()
sock:close()
end
return data
directly on event based I wrote this code but with Wireshark I cannot see any telegram leaving from HL to address 192.168.1.255.
What is wrong in your opinion?
Thanks.