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.

HEOS by Denon
#2
Telnet is used data exchange, so you need to use LuaSocket for communication. Try this code, change IP variable and see if there's any data in logs. Errors will be logged as well.

Code:
require('json')
require('socket')

IP = '192.168.1.11'
PORT = 1255

sock = socket.tcp()
sock:settimeout(5)
sock:connect(IP, PORT)
sock:send("heos://system/check_account\r\n")

res, err = sock:receive()
if res then
  dec = json.pdecode(res)
  if dec then
    log(dec)
  else
    log(res)
  end
else
  log(err)
end

sock:close()
Reply


Messages In This Thread
HEOS by Denon - by FatMax - 12.01.2016, 18:52
RE: HEOS by Denon - by admin - 13.01.2016, 13:17
RE: HEOS by Denon - by FatMax - 13.01.2016, 14:48
RE: HEOS by Denon - by admin - 13.01.2016, 14:57
RE: HEOS by Denon - by FatMax - 13.01.2016, 19:24
RE: HEOS by Denon - by admin - 14.01.2016, 07:50
RE: HEOS by Denon - by FatMax - 14.01.2016, 10:31
RE: HEOS by Denon - by FatMax - 14.01.2016, 15:38
RE: HEOS by Denon - by admin - 15.01.2016, 14:33
RE: HEOS by Denon - by FatMax - 15.01.2016, 16:55
RE: HEOS by Denon - by FatMax - 19.01.2016, 13:42

Forum Jump: