Timeline for Comparing a String after reading it from Serial fails
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 26, 2022 at 7:28 | history | edited | ocrdu | CC BY-SA 4.0 |
added 13 characters in body
|
S Dec 9, 2020 at 11:42 | history | suggested | ocrdu | CC BY-SA 4.0 |
Changed title, formatted code, changed tags
|
Dec 3, 2020 at 12:06 | vote | accept | Community Bot | ||
Nov 29, 2020 at 20:04 | history | became hot network question | |||
Nov 29, 2020 at 13:30 | answer | added | ocrdu | timeline score: 3 | |
Nov 29, 2020 at 13:27 | review | Suggested edits | |||
S Dec 9, 2020 at 11:42 | |||||
Nov 29, 2020 at 12:15 | comment | added | chrisl |
You should print the variable color out to the Serial monitor, to make sure, that you really received, what you send. Also you shouldn't use Serial.readString() , but Serial.readStringUntil('\n') and set your Serial Monitor to a line ending of newline only. Then try again. If that works, I will formulate an answer around that.
|
|
Nov 29, 2020 at 12:06 | review | First posts | |||
Nov 29, 2020 at 13:46 | |||||
Nov 29, 2020 at 12:02 | history | asked | user70502 | CC BY-SA 4.0 |