The bluetooth devices (and other serial) return an array of char.
What is the best/safe/proper way to extract these to other types?
For example, if theData is known to have a long from elements 2-5, doI coerce it with something like
myLong= (unsigned long) theData
or dereference as perhaps
myLong = * ( & theData + 2)
myLong = * ( & theData)
Are there dragons lurking when I do this (other than needing to insure that the data is actually there?
[in my current situation, I have a counter with the size of the received buffers I know that something is there]