Tips and tricks

View previous topic View next topic Go down

Tips and tricks

Post by nico0481 on Wed Dec 28, 2016 11:00 am

Hello,

I've to say it is a very nice app once again...

Playing with it daily, I've some tricks to share on forum.
Maybe it should be interesting to make a specific section in the forum...

For instance, you can use slider with only 2 steps (min=0 and max=1) to make a simple slider (toggle) switch...


Enjoy

Nico

nico0481

Posts : 6
Join date : 2016-05-25

View user profile

Back to top Go down

Re: Tips and tricks

Post by Admin on Fri Jan 06, 2017 10:04 am

Thank you!
By the way, here is one more method for the toggle function, which I prefer, because it also gives feedback, so you know the command was received correctly by the remote device.

Here are the steps:
- add a button, set press action to "b1", set text to empty string
- add a text field on top of it, set id to "t1", set text to "OFF".
- at the remote device, check for the command "b1" and toggle a variable b1_state, and send back "t1 ON\n" if true, or "t1 OFF\n" if false.

If should behave like this:
The text on the button is "OFF", you press once, it changes to "ON", you press again, it changes back to "OFF".

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum