Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 3 made on Wednesday September 24, 2008 at 14:21
Fishbones
Long Time Member
Joined:
Posts:
August 2008
14
OK, had "another" Read of the FM and came up with this:

var socket = new TCPSocket(true);
socket.connect("192.168.1.13", 80, 3000);
socket.write("/web/powerstate?newstate=0");
socket.close();

and an Asynchronous version:

var socket = new TCPSocket(false);
socket.onConnect = function()
{
socket.write("/web/powerstate?newstate=0");
socket.close();
};
socket.onClose = function()
{
};
socket.onIOError = function(e)
{
label = "Error: " + e;
};
socket.connect('192.168.1.13',80,3000);

Unfortunately, none of them work :-( and there is no indication of script errors on _PS_DEBUG_. Is there any other way to check what the sat receiver response is?

When I send _http://192.168.1.13/web/powerstate?newstate=0 from a browser it works but not via the above prontoscripts on a TSU9400.

Thank you.


Hosting Services by ipHouse