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

    Limited to 16 widgets on initialization

    Scheduled Pinned Locked Moved
    Frequently Asked Questions (FAQ)
    2
    5
    59
    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.
    • M
      mile_hi_guy
      last edited by

      I am in the process of porting my milling machine controller code and integrating it with the basicBLE example. The controller has a total of 60 functions and the GUI design uses around 130 widgets. I am porting the functions one at a time and it was going well until I got to the 8th function. The initialization sequence stops after displaying 16 widgets. I tried adding 100 ms and then 500 ms delays between sendMsg groups, but still only 16 widgets appeared. I added more widgets and commented out some of the previous ones, but no matter what combination I tried, only 16 widgets would appear. The code continues to work with the first 7 functions even when the remaining widgets fail to appear.

      Any ideas? I'm not sure where to go from here.

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

        @mile_hi_guy Hi,

        please check this thread:

        https://forum.gui-o.com/topic/231/issue-on-sending-widget-on-init

        At the bottom you will see a "non-blocking" code BLE code... Can you try it?

        P.S.: Adding some delay does not work, since BLE events are not processed I believe...

        Best regards,
        Kl3m3n

        M 1 Reply Last reply Reply Quote 0
        • M
          mile_hi_guy @kl3m3n
          last edited by

          @kl3m3n Thanks for your response. I copied the code you suggested, made the required changes/additions: (I changed lines 55 & 125 to use "String" instead of "std::string" & I replaced lines 9-12 with the first 37 widget strings of my UI design.) I loaded the code to my ESP32 and then tried to connect BLE from the GUI-O app and got error message "Invalid service error:"

          I'm probably doing something wrong, but with my limited knowledge, I don't know what to try next. Suggestions?

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

            @mile_hi_guy I suppose you tried to connect to the same device (quick connect)? Are the service and characteristic uids the same as the one from before?

            I suggest you unpair and remove the device (Android settings) then also remove the device from GUI-O and try pairing again. Maybe also try changing the BLE name in the source code...

            Best regards,
            Kl3m3n

            1 Reply Last reply Reply Quote 0
            • M
              mile_hi_guy
              last edited by

              You were right. I removed the previous BLE device and created the new one and everything now seems to be working as expected. I now have all 109 widgets on my main screen working and I am well into porting the milling machine controller code to the new GUI. Thanks a lot for your help. Hopefully it will be smooth sailing the rest of the way.

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