I've always had trouble interpreting incoming serial messages on Arduino, so I'd like to get a good grasp of it with this project.
Here's an example line coming in over serial (python, eventually): th1 120.0@
th01 - identifier, to show which value it corresponds to
120.0 - example value (could be float, could be integer)
@ - end of line value (couldn't really figure out how to detect normal end of line characters)
Ideally I'd like to break the line up into it's respective components in order to compare them against my data model (eg. if (identifier == "th") { saveData(); })
How can I receive all the data into a proper buffer and be able to compare strings or integer/float values?


