Re: [Libphidget-devel] serial numbers
Status: Alpha
Brought to you by:
jstrohm
|
From: <fit...@ph...> - 2002-09-12 02:48:16
|
12 includes the first byte, and the last byte, which you aren't printing out. The last byte is 0. (49/0) in Unicode reduces trivially to 49 in ASCII, or '1'. Chester > So for example I get this back > > 12 - 3 - 48 - 0 - 48 - 0 - 55 - 0 - 52 - 0 - 49 > > 12 bytes is the length of the message (does that include the first > byte?) > > 3 is the string descriptor > > 48 48 55 52 49 (unicode?) is 00741 |