15.01.2016, 14:33
Most probably you have to send auth info first, don't forget about escaping parameters in all commands or they might not work.
Put this after sock.connect and change user/pass variables accordingly:
Put this after sock.connect and change user/pass variables accordingly:
Code:
url = require('socket.url')
escape = url.escape
user = 'user@gmail.com'
pass = '12345'
cmd = 'heos://system/sign_in?un=' .. escape(user) .. '&pw=' .. escape(pass) .. '\r\n'
sock:send(cmd)