Can someone provide a clean and simple way of cutting up my character array buffer into 6 seperate variables of different types?
The incoming char array will look something like this "add 4 25 12 30 0010101 5"
These are the following variables I need to create out of this incoming byte array
add -String variable
4- Byte variable
25 - Byte variables
12- Byte variable
30 Bye variable
0010101 - Byte Array
5 - Byte variable
If it would make it easier the incoming byte array can be changed to have "," separating each part - "add,4,25,12,30,0010101,5"
Oh ok, I will have a look at that thread tonight, thanks.
I was thinking of doing something like this for each part which I need from the serialBuffer char array. It should grab the first part of the buffer which is a command name of up to 10 characters in length, stopping at the first "," and copies it to a new array which is then converted into a String which is what I need it to be.