how to parse text? ##name1 220\n ##name2 250\n ##name3 350\n +N. the key element of the end of the line is the character \n. Each line always ends with a newline character \n Static names - dynamic data only 220 250 350... if the length of one line is easy to determine by the newline character \n , then the next one becomes difficult because I cannot search for the character \n from the end . Text " ##name2 250\n" get text by key static text "##name2" the beginning of the next line is not always "##name3" maybe the text will be next" ##name1 .........\n"
I have included an image for an example. this is part of an example project. In fact, text is parsed from the bluetooth com port, there the text always appears new in such an example as I indicated above