Virtual outlets..

Related to the development libraries, released by Curt Binder
Post Reply
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Virtual outlets..

Post by lnevo »

Can I override the InstalledRelayExpansionModules definition so I could get another relay box in my iPhone app and use the ports to toggle functions instead of memory bits?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Virtual outlets..

Post by rimai »

Yes :)
I've done this in the past...
Just use Box2_Port1 and so forth
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Virtual outlets..

Post by lnevo »

Yeah I saw that in the feature.txt file. So as soon as I reference it, it will add the feature. Will it cause any problems trying to write to the missing relay box? That was one of my main concerns.

This is cool, I can now use relays instead of memory locations to trigger functions. This may be a good route instead of adding that functionality to the wifi code... :)
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Virtual outlets..

Post by rimai »

Nope... no side effect.
You can just reference it and it will start showing up on the Portal and android app automatically.
Roberto.
Post Reply