1

Topic: Update control elements from the board

New feature for test.
You can send values of input variables from board to GUI and change control elements: switches, sliders, edit fields and others.

RemoteXY.switch_1 = 1;
RemoteXY_sendInputVariables ();

Manual of this function by link https://remotexy.com/en/help/api/
Supported in library for Arduino IDE ver.2.4.6

2

Re: Update control elements from the board

WOW, this is a major improvement!
Thank you very much.

This will make this tool much more functional.

3

Re: Update control elements from the board

Nice, finally! The most wanted feature, for me at least, and after trying, it works... Thx!

4

Re: Update control elements from the board

Nice !  and worth the wait.....

Now what would be even nicer is a way of configuring the "Edit Field" widget to NOT accept input.  That way we would have a nice "display only" tool we can use instead of having to convert all numbers to char arrays and display as Text objects.

2B, or not 2B, that is the pencil ...

5 (edited by Seventh Dwarf 2020-07-06 12:07:58)

Re: Update control elements from the board

Hello,

I'm using RemoteXY since several years now for different ( simple ) project.
Now I have started a little bit more complex project and I like to show an animation of a wheel in the GUI.

As far as I could see, there is no possibility to show pictures, neither static nor as animation, in the GUI.
Therefore I tried to use the "Linear Level" indicator to animate a rotating wheel ( looking from above )

I recognized the new feature and wondering if it would be possible to change the center position parameter of the
indicator by the RemoteXY_sendInputVariables () function.
Or is it only possible to change the value?

with best regards
Seventh

EDIT: ok, I understood that this new feature is only for input variables, like switches, buttons etc.
Is there a way to manipulate the parameters of an output element?

6

Re: Update control elements from the board

Seventh Dwarf wrote:

Hello,


I recognized the new feature and wondering if it would be possible to change the center position parameter of the
indicator by the RemoteXY_sendInputVariables () function.
Or is it only possible to change the value?

with best regards
Seventh

EDIT: ok, I understood that this new feature is only for input variables, like switches, buttons etc.
Is there a way to manipulate the parameters of an output element?

The configured attributes of devices is decided at GUI build stage, and cannot be changed by any code. The GUI is uploaded to your RemoteXY app on your phone just once only, and that decides what each widget does, how it looks, etc.

Only the data elements named in the Input and Output variables section of the RemoteXY "#include" are exposed to your sketch.

2B, or not 2B, that is the pencil ...

7

Re: Update control elements from the board

Thanks Daba for the reply.
I have to find another solution
best regards
Seventh

8

Re: Update control elements from the board

Hi,
A very useful feature!

RemoteXY_sendInputVariables ();

And how to implement the same function in the RemoteXY 3.1.6 library?

9

Re: Update control elements from the board

reachim wrote:

RemoteXY_sendInputVariables ();

And how to implement the same function in the RemoteXY 3.1.6 library?

This is an old topic and things have since changed.

I suspect that is a depreciated function since 3.1.x

Sending data back to elements in the GUI is now as simple as...

RemoteXY.<ELEMENT_NAME> = <VALUE>;

Or for a text element

dtostrf(<VALUE>, 0, 0, RemoteXY.<ELEMENT_NAME>);

See... https://remotexy.com/en/help/indications/

"And voila, which is French for.......'and then I found out.'" - Ready Player One

10

Re: Update control elements from the board

Thanks Gunner for the reply!
Best regards!

Reachim