It might be worth:
- reporting a warning when there's no valid AM value in the message (I
think it's -1 in that case, but not sure I must admit)
- provide an option to MsgReader to specify a particular AM value for
a given message

David Gay

On 9/6/07, Kevin Klues <[EMAIL PROTECTED]> wrote:
> Problem resolved offline .......... for reference though, when
> defining AM types for use with mig generated java files, you need to
> follow the pattern seen int eh forwarded email....
>
> Kevin
>
> ---------- Forwarded message ----------
> From: Kevin Klues <[EMAIL PROTECTED]>
> Date: Sep 6, 2007 1:02 PM
> Subject: Re: [Tinyos-help] net.tinyos.tools.MsgReader usage questions
> To: John Griessen <[EMAIL PROTECTED]>
>
>
> If you have a struct defined as:
>
> typedef nx_struct mytag {
> .....
> } my_struct_type_t;
>
> Then you need to define your AM type as:
>
> enum {
>   AM_MYTAG = 5,
> }
>
> i.e. its not what you typdef it as, but rather the tag you use on the
> struct -- character for character, all capitalized, and with AM_
> prepended to it.
>
> Kevin
>
>
>
> On 9/6/07, John Griessen <[EMAIL PROTECTED]> wrote:
> > Kevin Klues wrote:
> > > Sorry... I mean the AM type.
> > Thanks,
> >
> > Will look.
> >
> > What's the right format for the .h file?
> >
> > //  AM_TYPE_MOISTURESENSORSMSG = 6,
> >
> > or
> >
> >      AM_MOISTURESENSORSMSG = 6,
> >
> > John
> > --
> > Ecosensory
> > tinyOS devel on:  ubuntu Linux;   tinyOS v2.0.2;   telosb ecosens1
> >
>
>
> --
> ~Kevin
>
>
> --
> ~Kevin
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to