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*

13
  • how is line ending set in Serial Monitor? it is possible that the second time you add line end characters from previous input to strReq Commented Jan 8, 2019 at 16:18
  • both NL & CR is set Commented Jan 8, 2019 at 16:19
  • then the second input is "\r\nSHOW" and this is not equal to SHOW Commented Jan 8, 2019 at 16:20
  • right because next time it is printing with new line.. how to solve this.? Commented Jan 8, 2019 at 16:21
  • one option is to ignore control caracters when reading. else if (inChar >= 32) { Commented Jan 8, 2019 at 16:23