now my question is does the knob parse data when i call “lv_textarea_set_text” or its just a string processing act? and if the knob parses data,is it a simple parse or multiple parses?
i can’t share the full code,even the link i shared is the project example that i used as a start point,the main board’s esp32 sends command to esp32 knob, and an if statement will make sure that its the right command and execute it,for example the esp32 in the main board sends “next screen” and the esp32 knob will receive the command,and an the if statement works like this
//**************
if (received_msg == “next screen”) _ui_screen_change(&ui_scr1, LV_SCR_LOAD_ANIM_NONE, 5, 0, &ui_scr1_init);
//****************
I can’t share any part of the real code because its confidential.
No problem, I’ve worked with similar projects and the way they worked was in a master/slave communication, where the display/IHM, the knob in your case, was just receiveing commands. I think thats your case.
These products used a serial communication protocol to be able to communicate, but in the majority of cases this protocol are proprietary, but most of them are a copy of each other hahaha. You can use these protocols as a base to build your own, not so hard to find the specifications.
I think you are in right track, just don’t use plain strings.