Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- strData1 =
- 'HTTP/1.1 200 OK' ..
- 'HOST: 239.255.255.250:1900'..
- 'CACHE-CONTROL: max-age=100'..
- 'EXT:'..
- 'LOCATION: http://192.168.1.152:49153/description.xml'..
- 'SERVER: Linux/3.14.0 UPnP/1.0 IpBridge/1.19.0'..
- 'hue-bridgeid: B8AC6FFFFEC53475'..
- 'ST: upnp:rootdevice'..
- 'USN: uuid:2f402f80-da50-11e1-9b23-b8ac6fc53475::upnp:rootdevice'
- local socket = require "socket"
- local udp = socket.udp()
- udp:settimeout(0)
- udp:setsockname('*', 1900)
- udp:setpeername('192.168.1.102', 50000) -- Echo IP and Port number
- udp:sendto(Data,'192.168.1.102',50000)
Add Comment
Please, Sign In to add comment