Iam fairly new to the arduino, and I have hit a slight road block, I am trying to read a string from the serial port, I know the format of the string Iam meant to read i.e +Z20,Test20,xx,xx. I want to capture that string and remove the +Z20 and print out the string again?
Iam using the arduino to run tests on device, and the device is loaded with firmware that runs its own set of tests (testing other circuitry on the device), the tests that run on the device sends back a string via the serial pipe in the format "+Z20,Test20,XX,XX" which is the result. I want to take that result and format it (i.e removing the +Z20 part) and just printing Test20,XX,XX. But Ive never done this before so Iam a little clueless where to begin (PS I am a novice when it comes to programming - sorry if I use the wrong terminology)
KeeganVeldsman:
I am trying to read a string from the serial port, I know the format of the string Iam meant to read i.e +Z20,Test20,xx,xx. I want to capture that string and remove the +Z20 and print out the string again?
Have a look at the second example in Serial Input Basics. There is also a parse example.