Hi,

 

The TwoBitField.java class interprets the bits array member differently
while encoding and decoding.

 

While decoding, bits[0] is set the LSB and bits[1] is set to the MSB
(check decodeXML() method).  Whereas while encoding (check toString()
method), bits[0] is used as the MSB, and bits[1] as the LSB.

 

To pass the right value to the device the caller has to interchange
these values, and interpret the reverse when decoding.

 

Regards,

-Pradeep

 

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to