B
benn
I have a microcontroller that I wish to send status data (via serial
RS-232) out to a PC com port. Im trying to minimize the amount of
bytes I transmit, so I want the micro to bit-pack various different
fields into just a few bytes.
For example, one 8-bit byte will contain the following information:
Bit 0: Has Green Eyes
Bit 1: Has Brown Hair
Bit 2: Is Under 6 ft
...
Bit 7: Has Freckles
How can I efficiently use XML to tag each bit field?
Thanks!
RS-232) out to a PC com port. Im trying to minimize the amount of
bytes I transmit, so I want the micro to bit-pack various different
fields into just a few bytes.
For example, one 8-bit byte will contain the following information:
Bit 0: Has Green Eyes
Bit 1: Has Brown Hair
Bit 2: Is Under 6 ft
...
Bit 7: Has Freckles
How can I efficiently use XML to tag each bit field?
Thanks!