Hello
I want to modif the net.tinyos.tools.Listen program. For the aim I had
recompiled
some programs in net.tinyos.util, net.tinyos.tools and net.tinyos.packet.
Nevertheless, I don't success in compile the Packetizer.java program.
Its gives me errors and I didn't see where the Serial variable is defined!!!
I find some definition of a Serial variable in C program or header.
please help
Packetizer.java:85: cannot find symbol
symbol : variable Serial
location: class net.tinyos.packet.Packetizer
final static int SYNC_BYTE = Serial.HDLC_FLAG_BYTE;
^
Packetizer.java:87: cannot find symbol
symbol : variable Serial
location: class net.tinyos.packet.Packetizer
final static int ESCAPE_BYTE = Serial.HDLC_CTLESC_BYTE;
^
Packetizer.java:93: cannot find symbol
symbol : variable Serial
location: class net.tinyos.packet.Packetizer
final static int P_ACK = Serial.SERIAL_PROTO_ACK;
^
Packetizer.java:95: cannot find symbol
symbol : variable Serial
location: class net.tinyos.packet.Packetizer
final static int P_PACKET_ACK = Serial.SERIAL_PROTO_PACKET_ACK;
^
Packetizer.java:97: cannot find symbol
symbol : variable Serial
location: class net.tinyos.packet.Packetizer
final static int P_PACKET_NO_ACK = Serial.SERIAL_PROTO_PACKET_NOACK;
^
Packetizer.java:99: cannot find symbol
symbol : variable Serial
location: class net.tinyos.packet.Packetizer
final static int P_UNKNOWN = Serial.SERIAL_PROTO_PACKET_UNKNOWN;
^
Packetizer.java:334: possible loss of precision
found : int
required: byte
escaped[escapePtr++] = SYNC_BYTE;
^
Packetizer.java:345: possible loss of precision
found : int
required: byte
escaped[escapePtr++] = ESCAPE_BYTE;
^
Packetizer.java:353: possible loss of precision
found : int
required: byte
escaped[escapePtr++] = SYNC_BYTE;
^
Note: Packetizer.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
9 errors
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help