Thanks for your reply.
i tried that.
in fact, in TestSerialc.nc i did :  uint8_t matrix[2][2] = { {0,1}, {2,3} };
in TestSerial.h : nx_uint32_t matrix[2][2];
and in Testserial.java :
public void messageReceived(int to, Message message) {
    int [][] matrix = new int [2][2];
    int i,j;
    TestSerialMsg msg = (TestSerialMsg)message;
    for(i=0; i<2 ; i++)
        for (j=0; j<2; j++)
    {
    System.out.println("Received packet sequence number " + msg.dataGet()[0][0] 
+ msg.dataGet()[0][1] + msg.dataGet()[1][0] + + msg.dataGet()[1][1]);
    }
 }


i know that i'm using dataGet() method badly in this case but i don't know how 
to fix it!!!! i get this error:

$ make telosb install
mkdir -p build/telosb
javac -target 1.4 -source 1.4 *.java
TestSerial.java:74: array required, but byte found
        System.out.println("Received packet sequence number " + 
msg.dataGet()[0][0] + msg.dataGet()[0][1] + msg.dataGet()[1][0] + + msg.data
Get()[1][1]);
                                                                                
^
TestSerial.java:74: array required, but byte found
        System.out.println("Received packet sequence number " + 
msg.dataGet()[0][0] + msg.dataGet()[0][1] + msg.dataGet()[1][0] + + msg.data
Get()[1][1]);
                                                                                
                      ^
TestSerial.java:74: array required, but byte found
        System.out.println("Received packet sequence number " + 
msg.dataGet()[0][0] + msg.dataGet()[0][1] + msg.dataGet()[1][0] + + msg.data
Get()[1][1]);
                                                                                
                                            ^
TestSerial.java:74: array required, but byte found
        System.out.println("Received packet sequence number " + 
msg.dataGet()[0][0] + msg.dataGet()[0][1] + msg.dataGet()[1][0] + + msg.data
Get()[1][1]);

        ^
4 errors
make: *** [TestSerial.class] Error 1


even when i change byte [][] matrix = new byte [2][2]; i get the same error 

can you help me please??

Regards,
                                          
_________________________________________________________________
Votre messagerie et bien plus où que vous soyez. Passez à Windows Live Hotmail, 
c'est gratuit !
https://signup.live.com/signup.aspx?id=60969
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to