Do you have the serial monitor also sending a newline character?
There is also nothing to reset the bufpos back to 0 when the data is parsed; there should be.
Do you have the serial monitor also sending a newline character?
There is also nothing to reset the bufpos back to 0 when the data is parsed; there should be.