Moving from Serial.readstring() to Serial.read() for strings

UKHeliBob Yes, it is Robin2’s example #2. Terrible of me to pretty much copy and paste but, I was tired of spinning my wheels and guessing. Robin’s post explained what the code was doing in a way I understood. I’m reading books on C, blogs, etc. and watching YouTube videos. All are very helpful but, I still don’t understand a lot of the example code that I find on-line. I’m sure you are correct but, I simply needed the code because I don’t have the experience with C needed to figure how to “let loop() do the repetition”.

GolamMostafa, Thank you for the detailed explanation and the diagram. Your point #6 is well taken but, without the code to reinforce your points, I just don’t get it. Hopefully the code I posted in post #27 is a smarter way of getting the characters out of the buffer. No delay(200).

J-M-L I understand now. In my desire to make things work, I made a bad decision. Hopefully post # 27 is a better strategy. Thank you.