I missed the beginning of this...is this T2?
I only find RemoteControl.java (no ...ler) in my T1 tools,
and it doesn't have a sendCommand( short[] ) method.
But a couple things to check anyway:
First the mig struct is a byte and you are using a short,
and second, assuming there is a send-array me
and i wrong copied/pasted: here is example B again:
example B: not working
short[] CmdArray = new short[1];
short Cmd;
int hex;
protected RemoteController rc;
public void justdoit(){
try{
String b1 = _byte1.getText();
hex = Integer.parseInt(b1.trim(),
ok, i made it work with an array of size one :-) (see below)
but now, when i increase to an array of size 2, i still get this:
java.lang.ArrayIndexOutOfBoundsException. code below.
what is the difference bewteen dim1 and 2?? for info, i try to send
something like 00 or FF
// dim1
short[] Cmd
>
To: "Micfox Micfox" <[EMAIL PROTECTED]>
CC: tinyos-help@millennium.berkeley.edu
Subject: Re: [Tinyos-help] sending array with moteif
Date: Wed, 20 Jun 2007 09:51:32 +0200
and i wrong copied/pasted: here is example B again:
example B: not working
short[] CmdArray = new sh
and i wrong copied/pasted: here is example B again:
example B: not working
short[] CmdArray = new short[1];
short Cmd;
int hex;
protected RemoteController rc;
public void justdoit(){
try{
String b1 = _byte1.getText();
hex = Integer.parseInt(b1.trim(),
thank you or your message
yes, i had actually only copied the whole declaration in example A: short[]
CmdArray = new short[1];
i was trying to send a 1dim array for a test.
On 6/20/07, Micfox Micfox <[EMAIL PROTECTED]> wrote:
It seems it has nothing to do with TinyOS but the java program err
It seems it has nothing to do with TinyOS but the java program errors.. How
did you define CmdArray in example B? Have you specified the size of the
array in Java code?
From: "julien falco" <[EMAIL PROTECTED]>
To: "TinyOs Help List"
Subject: [Tinyos-help] sending array with moteif
Date: Wed