Hello
I get a payload which contains several pieces of information.
As an example in the debug window I get:
payload string
"ALERT Step 1 RUN shift address 1772784635 74646 7862, ABFF (next line symbol)
Step 9 RUN shift address 194600 87875 7862, ABFF (next line symbol)
System Time is 14:21(next line symbol)
ERROR Step 5 STOP move address 17384635 75767895 7862, ABFF (next linesymbol)
Step 5 STOP move address 1772784635 75765 785562, ABFF (next line symbol)
INFO Step 7 GO move address 1772784635 794646 7862, ABFF "
(the next lins symbol is a symbol I coud not past)
Sometimes there are 3 lines, other times up to 20 lines.
However, I only need the lines that start with ALERT, INFO or ERROR and then only the first first character and the first address.
The whole thing looked super easy, but I can't get it to work.
The first thing I'm trying to do is to break down the string by the next line and then look at each line individually to find my keywords. In the last step I would try to cut from the back. But I don't have an Idear yet because the information always looks a bit different.
Does anyone have an idea how to tame this jumble of data? I can't change anything about the source, because I simply read it.