02.01.2017, 18:24
Code:
function cmd (mioff)
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
end
Hi there, I am going on to embadded Milight on HL unfortunately without success. User library above is not changed but HL error log tells me that on line 3:loop or previous error loading 'user.milight'.
Furthermore I tried to snif using wireshark and it seems that there is not any telegram sent by UDP to ny device. Event based script is the one shown below:
Code:
require("user.milight")
mioff = string.char(0x80,0x00,0x00,0x00,0x11,0x00,0x31,0x00,0x00,0x08,0x04,0x02,0x00,0x00,0x00)
cmd (mioff)
Thanks.