GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. Fehr
    F
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Best 0
    • Controversial 0
    • Groups 0

    Fehr

    @Fehr

    0
    Reputation
    2
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Fehr Unfollow Follow

    Latest posts made by Fehr

    • Clear Chart Data

      Hello community,

      I am using an ESP32 with a bluetooth connection to visualise data in a chart. I would like to reset the chart data at a certain point in time so that the chart starts visualising new data from the beginning. However, I have not yet managed to delete the old data. My initialisation of the chart looks like this:

      sendMsg("|CH UID:Current_Chart X:50 Y:82.5 W:90 H:30 VIS:1 CHN:\"Current [A]\" YLO:0 YHI:40 FSZ:2 XMA:8 YMA:6\r\n");
      

      Before the chart reset i continuously send the new measurements every second with the following command :

      string str = "@Current_Chart YP:" + String(BatCurrent) + "\n\r";
      sendMsg(str);
      

      Does anyone have an idea how I can reset the chart so that the new data is plotted from the beginning again? Thank you in advance for your support and best regards.
      Fehr

      posted in General Discussion
      F
      Fehr
    • RE: How to display a float number via bluetooth

      @kl3m3n
      Thank you very much for your support.
      To use a string instead of a char array is even easier 🙂

      posted in General Discussion
      F
      Fehr
    • RE: How to display a float number via bluetooth

      @Fehr

      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.

      f0570429-717f-4554-a5d9-d8f0a8ede516-image.png

      The following string is displayed on the Arduino console:

      bb3d0bbc-b64c-4bc2-a93b-6b81142ead68-image.png

      And the desired numbers values are now finally visible in the GUI:

      9b5e94ed-a49b-428c-9ee1-da5759de2777-image.png

      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

      posted in General Discussion
      F
      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.

      571ba2f2-dd9e-404f-8a7f-6d6c0682d926-image.png

      I can now generate a correct string with the snprintf function. This is confirmed by the following console output.

      ba9c6102-f598-41ce-a1f4-58f4f075eec9-image.png

      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?

      f3488234-5e8d-4cb9-95f1-95362e141b02-image.png

      Thank you very much for your support.
      Regards Fehr

      posted in General Discussion
      F
      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

      posted in General Discussion
      F
      Fehr