hi there - I am using a serial/mqtt input that is string i convert it to Char using this method below
but it does not seam to recognized \n in the character array sent to lv_textarea_set_text. would you know what I am missing
sent package consist of this “high: 18\nlow: 6\n20 km/h\n0 mm”
but it does not translate with the newline break
high: 18
low: 6
20 km/h
0 mm
it translate too single line “high: 18\nlow: 6\n20 km/h\n0 mm” in the text area with out the newline breaks
would you have suggestion on a method of correction
when I set it directly it works fine and displays correctly . just when I pass as variable it does not
the serial code looks something like this: i pass this cmd_1(payload) through the serial connection
yes it does work this way. not my favourite way of doing it I use similar method in AI text box. but that only sends a new line every few seconds after it speaks the sentence and when it starts a new sentence it print the next sentence . for line break after such a small amount of characters it causes bottle neck and stuff does not get printed so you have add time delay before each write to get consistent writes