Hi,
I have following questions concerning the parameterized interfaces:
1) In case of the scenario when I have two packets X and Z with
corresponding identifiers MSG_X and MSG_Z.
To send them both I need to declare two separate components in configuration
file?
AMSenderC(MSG_X) a
I was reading the tinyos-programming-manual. At the end of Chapter 6.0 there is
this little remark:
"Parameterized interfaces arent limited to a single parameter. For example,
this is valid code:
provides interface Timer[uint8\_t x][uint8\_t y]"
However, if I try this i get only a syntax-error
Hi, does anyone know how to obtain the parameter values from within the wired
component e.g. in A where
A -> B.Interface[unique("Interface")];
Is there by any chance some variable name that when referenced from within any
of A.Interface's commands/events will yield that unique value?
--
Warm
hi Darren,
i guess this isn't exactly what you were looking for, but you might be
able to get the information you want by keeping track of it yourself from
the beginning. i should say up front that i've never tried what i'm about
to suggest, so no guarantees.
unique() is a compile time const
Shane, you are dy marvelous.
--
Warm regards,
Darren Bishop, MSc, BSc (Hons), MBCS
On Monday 14 August 2006 03:24, Shane B. Eisenman wrote:
> hi Darren,
>
> i guess this isn't exactly what you were looking for, but you might be
> able to get the information you want by keeping track of it
Hey all,
Just occurred to me that you can include the following command to any
parameterized interface:
command uint8_t .getid[uint8_t id]() {
return id;
}
Best regards,
Darren
Original Message
Shane, you are dy marvelous.
--
Warm regards,
Darren Bishop, MSc, BS