well, I am new in arduino. so anyone can give me an example I would be appreciated much.
I have a machine that use serial protocol to get the measurement data from it. The protocol was attatched below:
My problem is after I sent the “M|E|S|CR|LF” via serial port to the machine, the machine give me back with a number of unknown letter.
I only want to extract the number (for example 5000 as in attatched) from the receive bytes. also I found out that the receive bytes have a lot of white space, does arduino has any function to do with it, to trim it out I just need the number left.
Thank you in advance, if anyone give some example would help me much.
btw, sorry for my english if you do not understand it all.