1

Topic: RemoteXY_sendInputVariables();

This function call is not available any more or what has happent?
My early projects using this external function needed it.
Edited field did not update without it.
Now, I compiled my early working project and there is cunction call "RemoteXY_sendInputVariables();"  and it causes compling error:
"RemoteXY_sendInputVariables' was not declared in this scope"

2 (edited by Gunner 2021-08-29 20:59:10)

Re: RemoteXY_sendInputVariables();

Paavo wrote:

My early projects using this external function needed it.
Edited field did not update without it.

Without seeing your code this is a guess of what you are doing, but I suspect that RemoteXY_sendInputVariables() is a depreciated function now... possibly 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.'"

3 (edited by Paavo 2021-09-01 05:40:00)

Re: RemoteXY_sendInputVariables();

Thanks Gunner
Last revision of library is 2.4.6 where function RemoteXY_sendInputVariables() is at the end of its RemoteXY.h file.
So, if somebody doesn't want to change his/her older code, may use that renamed (ex. RemoteXY2.4.6 ) #include at the begining of his/her code.

2nd question was how to add decimal point to field. I accidently erased this question, I was stupid. Sorry.

Now I wonder where the version changes of the libraries can be found chronologically?

4 (edited by Gunner 2021-08-31 05:59:59)

Re: RemoteXY_sendInputVariables();

Updating the library brings many features.  Why stay limited?

Again, just guessing what your older code looks like... but as I understand it by reading other topics, all one should need to do is remove the RemoteXY_sendInputVariables() command and the rest should work as now intended.

As for the Edit Field element... in the editor, set input type: as Float

https://remotexy.com/en/help/controls/edit/

"And voila, which is French for.......'and then I found out.'"

5 (edited by Paavo 2021-09-13 12:13:39)

Re: RemoteXY_sendInputVariables();

WiFi manager feature is great option to RemoteXY. Man cannot live without it.

When using WiFi manager in RemoteXY projects there is some important things to do. Here is earlier example:
http://forum.remotexy.com/viewtopic.php?pid=2514#p2514
Now, normal library RemoteXY.h will be replaced with remotexy_custom.h and it is not in update list at all.
There is also function RemoteXY_sendInputVariables() and thats why it is still needed, I think.
So, it would be a really good thing if the features required by the wifi manager were included in the normal library.
Also in addition, instructions on how to use wifi manager should be on the "help" pages.