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 September 12, 2010 at 14:37
marco0305
Long Time Member
Joined:
Posts:
February 2009
19
Hi,
I'm trying to write myself a Denon module. I know there're several around but I like to make my own.
I read the very interesting post from Lyndel about task based and module based.
So I started using the InteractiveTCPClient from Philips as a start. It does send the commands and receives the feedback. So I declared the var denonTCPClient in the activity level. I also do the parsing in the activity level. The init commands like PW? get sent in the pages so it displays the correct info on first show.
I've created a RESOURCES page with some labels. The labels carry the prontoscript for power on/off. This I do because I want to use them when I launch an activity like watchTV. So I call the script in the home page using eval().
Unfortunatly the variable DenonTCPClient is unknown so it throws an error saying the var is undefined. I think this is normal because the variable only gets declared in the activity script.
Any suggestions on how to get around this?


Hosting Services by ipHouse