hello,
I fixed the small bug, it was because length() return an Integer. I 
changed all LLRPTypes so that they return int (instead of Integer), 
which is more common, anyway. Please do a cvs update. This should not 
have much affect on existing source code, as java can do autoboxing.

Concerning the Version. Yes, you do have to set it each time. There is 
the possibility to use variable arguments, so you could set the version 
by calling message.setVersion(new BitList(0,0,1));
which isn't much shorter, though.
The version is not set at compile time since a user can construct a 
message compatible to another version of the protocol.
However, it would be possible to set a default value, so that, if you 
send a message in the current version, you would not have to set the 
version. I guess this would make life easyer, we'll give it a thought.

cheers,
Basil




Casey Hagen schrieb:
>
> Hello,
>
> I have built the java LTK and I am now starting to test it, but I have 
> a few questions.
>
> Why do I have to set the version on every message? Is there an easier 
> way to do this, or why can’t the toolkit set the version when building 
> the jar?
>
> Also, there is a small bug with the BitList(string) constructor, if I 
> create a new object with BitList(“001”) and then call setVersion with 
> the bitlist object, setVersion throws an exception saying wrong length 
> of version.
>
> Thanks,
>
> Casey
>
> _______________________________
>
> *Casey Hagen **|*** *Field Applications Engineering Program Manager*
>
> 701 N. 34^th Street, Suite 300
>
> Seattle, WA 98103
>
> [EMAIL PROTECTED]
>
> Desk: 206.834.1093 | Cellular: 206.295.5637
>
> http://www.impinj.com/
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> llrp-toolkit-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
llrp-toolkit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel

Reply via email to