Lighting, lighting, lighting

Forum for discussing building user interfaces for controlling MLServer using the iPhone or iPod Touch.
Bago
Intermediate
Intermediate
Posts: 452
Joined: Mon Dec 29, 2003 3:02 pm
Location: Potomac, Maryland
Contact:

Lighting, lighting, lighting

Postby Bago » Sun Nov 21, 2010 4:56 pm

I see in the user log that when I move the slider on the default iphone lighting pages the following comes up:

SetVariableFast|mllighting_3_level~90

I have no change in any of my lighting. It seems to me that there needs to be some trigger to send and create the following command - MLLighting|On~003~90, but I dont see anything that would do this.

Am I missing something?

If not, what is the best way to bridge the missing gap?

Thanks.

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: Lighting, lighting, lighting

Postby CinemarDave » Mon Nov 22, 2010 12:36 pm

What you are seeing is the demo code running. You would have to edit the HTML files and make the appropriate changes for your system. In this case you would have to change

doCommand("SetVariableFast|mllighting_3_level~"+sVal);

to something like

doCommand("MLLighting|3~On~"+sVal);

Also, you would have to change all occurrences of the reference to light #3 to the actual light number you are trying to control.


Return to “iPhone / iPod Touch Beta”

Who is online

Users browsing this forum: No registered users and 1 guest