I have an incoming 11 bytes of data per send. It always begins with 0A 52 which identifies the device. The remaining is as so:
0A 52 08 01 01 01 00 C1 20 02 59
52 Packettype
08 subtype
01 Sequence nbr
01 01 ID
00 C1 SenseT
20 SenseH
02 Status
5 level
9 PwrLvl
As there is no CR/LF what is the best way to read in the 11 bytes making sure it begins with 0A 52 and still being able to split the final byte into nibbles.
Thanks for your help.