02.02.2022, 15:53
You can adapt this code for your use case: https://forum.logicmachine.net/showthrea...1#pid15941
Add headers to initial request lines and change APPKEY to the actual application key:
Add headers to initial request lines and change APPKEY to the actual application key:
Code:
sock:send(
'GET ' .. path .. ' HTTP/1.1\r\n' ..
'Host: ' .. host .. '\r\n' ..
'Accept: text/event-stream\r\n' ..
'hue-application-key: APPKEY\r\n' ..
'\r\n'
)