GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Y position of widgets is always at the top of screen

    Scheduled Pinned Locked Moved
    Report Bugs
    2
    3
    14
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      richamar
      last edited by

      I am using a Samsung Galaxy A54 with Android Version 16 One UI version 8.0.

      Arduino code is on an esp32C3 communicating to the phone with BLE.

      I am trying to create a gui on the phone using gui-o version 1.0.108 downloaded from GooglePlay with in purchase paid upgrade to the full version.

      Everything appears to working correctly for communication an between the gui-o app on the phone and the code in the parseGuioMessage with init and widgets added correctly and working properly except for the Y position.

      X position works correctly but no matter what value is entered for Y: the added widget appears at the top of the screen.

      K 1 Reply Last reply Reply Quote 0
      • K
        kl3m3n @richamar
        last edited by kl3m3n

        @richamar Hi!

        Can you please show a simple command, so I can try to reproduce this.

        If the widget appears on the top of the screen (at 0 position), then the given Y position is invalid. Can you please check that there are no spaces between parameter and payload, e.g.:

        Y: 50
        

        It should be:

        Y:50
        

        You can output the data to serial for debugging, before sending it to BLE...

        Best regards,
        Kl3m3n

        R 1 Reply Last reply Reply Quote 0
        • R
          richamar @kl3m3n
          last edited by

          @kl3m3n said in Y position of widgets is always at the top of screen:

          Kl3m3n

          Thank you @kl3m3n for your reply.

          Your suggestion to print things out got me experimenting with my code and I discovered an issue with message length

          I initially used a setting of a message length of 20 to try and fit a single BLE packet, as I was uncertain about the issue of multiple messages for a single gui-o command.

          My concern was unwarranted, and I discovered that my message was being truncated and indeed the Y position was invalid.

          When I increased the BLE message to 40 , the position is now correct and I think that the Arduino BLE library is sending multiple packets and the position of the widgets is as expected.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post