On Oct 1, 2008, at 6:20 PM, Tahir Azim wrote:

> Hi,
>
> Just wanted to point out that there may be a slight bug in the  
> net.tinyos.message.Message class in tinyos-2.x/support/sdk/java. The  
> methods getSerialPacket and setSerialPacket modify a SerialPacket  
> object. But  that object is not used anywhere else, nor is its class  
> checked in to CVS. This object also causes a "cannot find symbol"  
> error while compiling RadioCountToLeds.
>
> So maybe that class needs to be checked in or references to it in  
> net.tinyos.message.Message need to be removed. The latter worked for  
> me...

Look at the directory Makefile:

# Top-level Makefile for tools/java

INITIAL_TARGETS = SerialPacket.class SerialPacket.java

ROOT = ../../..
include $(ROOT)/Makefile.include

TOS=$(shell ncc -print-tosdir)
SERIAL_H = $(TOSDIR)/lib/serial/Serial.h

SerialPacket.java: $(SERIAL_H) FORCE
         mig -o $@ -java-classname=net.tinyos.message.SerialPacket  
java $(SERIAL_H) serial_packet -I$(TOSDIR)/types


SerialPacket is auto-generated using mig.

Phil

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to