• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

lvgl display multiple topics

Q&A Forum › lvgl display multiple topics
0 Vote Up Vote Down
acd asked 10 months ago

hello Sara,
In chap 5.7, I don’t understand how to display multiple topics from the same Mqtt broker.  Doo you have a piece of code to process.
Thanks,
marc

2 Answers
0 Vote Up Vote Down
acd answered 10 months ago

 

0 Vote Up Vote Down
Sara Santos Staff answered 10 months ago

Hi.
you need to:
– create a variable for each of the topics you want to subscribe to
– subscribe to every topic individually
– create different text labels , one for each topic
– upon receiving an Mqtt message, verify in which topic it was published and display it on the right text label.
 
At the moment, we don’t have an example for that and I’m currently out of the office, so I don’t have a way to try it out at the moment.
 
Regards.
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.