How to use lv_observer in lvgl 9.x #4
Replies: 5 comments 20 replies
|
@mhaberler I thought you might be interested in this. |
|
thanks - tracking ;) |
|
@kisvegabor ESP32-S3 based sample project showcasing |
|
I'm looking into a client which can work with MQTT it looks to me the observer pattern is a good match with a MQTT subscription/topic - I'm thinking about how to best match these up in generic way instead of per-case C++ coding, maybe through a JSON config btw the broker does not necessarily be somewhere external, see https://github.com/mlesniew/PicoMQTT (PicoMQTT is currently learning MQTT-over-websockets and that will leave the route open to use a plain website as client as an alternative) I'd be interested in exchange of ideas/prototypes on the subject -m |
|
re Espressif ESP-IDF MQTT5 : tried that, works great - for sensorlogger we need some form of broker however sensorlogger will eventually be able to subscribe to a broker to fetch values and add them to the log (not yet in the current release, but drop Kelvin a note for a TestFlight invitation - should be around shortly) with that scheme it should be possible to log arbitrary sensors, maybe even ones read and decodeby Open MQTT Gateway |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Here is an example of how to use
lv_observerinLVGL 9https://github.com/sukesh-ak/BSP-IDF5-ESP_LCD-LVGL9/blob/main/main/main_ui.c
It's used for the brightness percentage slider to show the percentage value in label as well as use it to change the actual brightness of the display using
callbackfromlv_subject_add_observer_obj.Callback function
UI Binding using lv_observer
All reactions