According to the tutorial, we can send a struct from the mote to the PC over
the serial port.
The struct is defined as below,

typedef nx_struct MyMsg{
nx_uint16_t nodeid;
nx_uint16_t data;
}MyMsg;

and use MIG to generate a java file or other language used on the PC.

what if I want to add a float or double type to the struct?
I simplely add " double data2" to the struct, but the MIG tool complained
that "data2 must be a network type"
How should I write the code.
Please help.

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

Reply via email to