@kl3m3n
Thank you very much for your support.
To use a string instead of a char array is even easier
Posts made by Fehr
-
RE: How to display a float number via bluetooth
-
RE: How to display a float number via bluetooth
with an update function that retrieves the entire string that needs to be sent, I finally managed to transfer the desired number to the GUI display.
The following string is displayed on the Arduino console:
And the desired numbers values are now finally visible in the GUI:
Basically, it works. However, my question now is is there no easier way to achieve the same result? Thank you very much for your feedback and regards.
Fehr -
RE: How to display a float number via bluetooth
@kl3m3n said in How to display a float number via bluetooth:
Hi kl3m3n, thank you very much for the quick reply.
Unfortunately, my char array variable is still not output correctly in the following example. I am currently using an ESP32 as test hardware.
I can now generate a correct string with the snprintf function. This is confirmed by the following console output.
In the GUI display, however, the variable name is still displayed instead of the content of the char array. This is actually my general question, how do I have to pass the content of a string variable (char array) correctly so that I get the same output in the GUI as on the console?
Thank you very much for your support.
Regards Fehr -
How to display a float number via bluetooth
Good evening
I have only recently started using GUI-O and have not yet been able to understand how I can display a simple float variable on the display if a bluetooth connection is used. Is there perhaps a good example in this forum that explains my problem?
Thank you very much for your support.
Regards Fehr