Hello,
I’m hoping someone will help me write a code to control our WiFi bed. I’ve looked at this forum but can’t seem to get anything to work so at this point? I can provide you with HEX codes, IP, and a numerous amount of links I’ve found to complete this project. I know once I have an example, I can write from there.
Message me if interested, and thank you, in advance for your time and help.
Hi,
I have a hex code lua for my hdmi switch, connected to a Global Cache IP2SL, the following code works for me ::
local socket = require(“socket”)
host = “192.168.0.69”
c = assert(socket.connect(host, 4999))
c:settimeout(5)
local sres, serr = c:send(string.char(0x05, 0x55, 0x19, 0x09, 0x77))
print(“Send:”, sres, serr)
local data, rerr = c:receive(300)
luup.log (data)
print (“Receive:”, data, rerr)
c:close()
John