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 1 made on Sunday November 7, 2010 at 10:24
rap
Long Time Member
Joined:
Posts:
September 2006
59
I want to make sure I understand this correctly. My implementation is not working as expected.

Activity Listens to Pandora

Acivity functions:
CF.activity().onSleep = function() { socket.close(); }

CF.activity().onWake = function() {
  socket = new TCPSocket(false);
  socket.connect(IPaddr, 60128, 3000);// port 60128, 3000 s\msec
}

Jumps to display page:
if (socket.connected === false) {
     socket.connect(IPaddr, 60128, 3000);
  } else {
     doInit(); //sends queries for display data
}

socket.onConnect = function() {
   System.print("Connection to DHC 40.1 sucessful!");
   System.setGlobal("gIPaddr", IPaddr);
   System.print("gIPaddr onConnect= " + System.getGlobal("gIPaddr"));

  result = "";     //clear receive buffer
  replyMsg = "";//parse string 
  doInit();        //load up page
}

Then onData() and parse routines display the song/tack/time...etc.

But, Pronto goes to sleep while on the display page. onWake it should establish a new socket connection and upon connection begin the process again. It doesn't. I just see the same page as when it went to sleep.

Is it correct that the display timeout set the unit to sleep or is it different time out? I have WiFi set for 24hrs.

Thank you.


Hosting Services by ipHouse