Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    Simple, reading serial data is way faster than it comes in. So you read everything out of the buffer and cleared it so that available returned zero before everything got there. You can check that available gives you a large enough number so that you know the whole message is there before you start reading or you can parse your message to see if it is all there before you move on. Had you come back later and read some more on the next loop you would have seen ":0} before the next message. It just got there after you stopped reading. Commented May 5, 2020 at 0:09
  • hey how did you finally make it? could you post the final code? I've been despairing of the detail for days. I would be very grateful! Greetings from Germany Commented Sep 14, 2021 at 17:28