This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Epson projector tcp / ip control help
#2
You can convert hex char codes to a string like this:
Code:
hs = string.char(0x45, 0x53, 0x43, 0x2F, 0x56, 0x50, 0x2E, 0x6E, 0x65, 0x74, 0x10, 0x03, 0x00, 0x00, 0x00, 0x00)

Then you need to send it before the actual command:
Code:
res, err = sock:send(hs)
res, err = sock:send(cmd)

Note that anything between <> is not a string value but an ASCII character name, so 'PWR OFF<CR>' should actually be 'PWR OFF\r'
Reply


Messages In This Thread
RE: Epson projector tcp / ip control help - by admin - 02.09.2020, 11:43

Forum Jump: