I need a pointer in the right direction.
I receive a string of data from hardware in the following format
" 01 1 2 1 0340 10 33 56 08 09 20 09 0002 0010 0000 0303 0303 0600 0000 0600 0000 0349 0302 0349 0301 0349 0303 0349 0203 0413 0500"
I need to put these values or words in an array with 5 elements. The non numerical char is a Ascii 4 to signal start of the string and the vertical lines is ascii 5 to signal a new element in the array. 4 elements will have a fixed lenght with the same amount of words everytime. the fourth element needs to be variable and receives two columns of words, each one is the temperature of a probe, problem is the recorder sometimes take temp reading for an hour and sometimes up to 5 hours at 5 second intervals. So this is why the fourth element must take a variable lenght.
these words need to be parsed into a float and used to draw a graph which should not be too difficult.
I just need help on how to get the string above into an 5 element array.