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.

Required fields*

4
  • 1
    There is no such thing as "a whole string" in serial. There is only single bytes. It is your job to decide (and program it so it understands) what a string is. Commented May 22, 2021 at 15:06
  • Then how can I watch for example for line break? Commented May 22, 2021 at 15:15
  • WHy do yoiu ithink you need to? And if you want to get serial data into a variable and then use that serial data for some other thing, just use whatever you stored in your variable. Once you read from serial it's gone from serial forever. But you saved it in data, so just use it from there? Commented May 22, 2021 at 15:19
  • What about Serial.readStringUntil() and read to e. g. \n? Commented May 22, 2021 at 16:05