Update, I just found out something:
The Data will not be in this format:
Code:
48 40 20 00 39 40 7F 11 23 7C 57 BD A3 DB 80 D4 B5 D4 85 9A 3B 32 3B 2C 31 90 24 B0 23 01 91 0B 1E 79 02 41 82 07 00 06 42 00 01 B5 F9 03 33 42 00 03 62 0D 00 67 08 F7 EE 7E 8A 4C 76 CC 12 90 20
With A White space between each Byte, It will in this format without white space between each byte:
Code:
4840200039407F11237C57BDA3DB80D4B5D4859A3B323B2C319024B02301910B1E79024182070006420001B5F90333420003620D006708F7EE7E8A4C76CC129020
So far with the updated code I have been able to parse the first 6 bytes into this format:
48 40 20 00 39
40
Now as I said in my last post, to get the correct # of bytes into 16 byte line like this:
Code:
7F 11 23 7C 57 BD A3 DB 80 D4 B5 D4 85 9A 3B 32
3B 2C 31 90 24 B0 23 01 91 0B 1E 79 02 41 82 07
00 06 42 00 01 B5 F9 03 33 42 00 03 62 0D 00 67
08 F7 EE 7E 8A 4C 76 CC 12
I cannot do these bytes like I did the ones above, because unlike those bytes these bytes are never the same amount, so that is why I had to store the packet byte length, so now I need to figure out how to use it.