Hi,
http://docs.tinyos.net/index.php/Mote-PC_serial_communication_and_SerialForwarder#MIG:_generating_packet_objects
AM_RADIO is defined as an enumeration in header file for the app. To
prevent this error in mig, the payload structure should also be defined
in the same header file as something like
typedef nx_struct Radio {
...
} Radio;
If the payload structure was defined as
typedef nx_struct Whatever {
};
then the corresponding enum should be AM_WHATEVER.
On Wed, 2010-07-14 at 17:51 +0800, CHEN WEIMING wrote:
> Hi, all
>
> just get a problem with tinyOS 2.0:
>
> in module I use interface Receive, and then wired it to new
> AMReceiverC(AM_RADIO) in configure, AM_RADIO is a constant I set, but
> when I use mig to generate the java class, I get an error "cannot
> determine AM type", can someone help me to solve this problem?
> Thanks very much.
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help