Hello,
I have a java application that displays through the console the data of the
OscilloscopeMsg structure fields of a packet received via serial from a root
node.
I am using mig to generate OsiclloscopeMsg.java as stated in the manual, and
the application runs with no problems.
Now, from the same java application, I also want to display through the
console the THL value of the CTP header from the packet.
I thought of using mig again to generate a file like CTPDataMsg.java using
the following makefile line:
CTPDataMsg.java:
mig -target=null -java-classname=CtpDataMsg java
/opt/tinyos-2.1.0/tos/lib/net/ctp/Ctp.h ctp_data_header_t -o $@
However, when making it ouputs a bunch of errors:
/opt/tinyos-2.1.0/tos/lib/net/ctp/Ctp.h:46:24: error: Collection.h: No such
file or directory
/opt/tinyos-2.1.0/tos/lib/net/ctp/Ctp.h:71: syntax error before
`nx_collection_id_t'
/opt/tinyos-2.1.0/tos/lib/net/ctp/Ctp.h:71: warning: no semicolon at end of
struct or union
/opt/tinyos-2.1.0/tos/lib/net/ctp/Ctp.h:73: syntax error before `}'
/opt/tinyos-2.1.0/tos/lib/net/ctp/Ctp.h:73: warning: data definition has no
type or storage class
My 2 questions:
1) What is the problem in here ? (Ctp.h is the original code, with no
modifications)
2) Is it possible to do this this way ? I mean, in my java application, in
order to display OscilloscopeMsg data I register a message listener to the
OscilloscopeMsg message type, now if I want to display Ctp header data would
it be enough with registering another listener for Ctp header structure?
Thanks in advance.
(I am still learning TinyOS...)
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help