[Tinyos-help] Variables in Tinyos

Juan Antonio López Riquelme ja.lopez.riquelme at gmail.com
Fri Apr 27 06:50:30 PDT 2007


Hi,

you must remenber that TinyOS work with components and only you can access
to component is with interfaces. For pass the variable you must provides one
interface with one command that return the value of variable in the
component that it have the variable.

For get the variable you can uses the interface in other components and call
the command for get the value.

If the variable can change for many components use atomic.

A greeting,
Juan Antonio.


2007/4/27, simone.s83 at libero.it <simone.s83 at libero.it>:
>
> Hi, i want to know if it is possible to pass the value of a variable
> between two differents modules and how i can do it.
>
> Moreover is it possible to create a variable that can be modifided by all
> modules of a application and how i can do it?
>
> Thanks
>
>
> ------------------------------------------------------
> Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
> http://click.libero.it/infostrada
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070427/628eeea1/attachment.htm


More information about the Tinyos-help mailing list