[Tinyos-help] How to call functions in other nesC file
Faisal Aslam
aslam at informatik.uni-freiburg.de
Mon Feb 4 23:00:33 PST 2008
Make the function that you wish to call as a "command". From other file
"use" the interface that has the command and "call" it (and do not
forget to wire it with the file "providing" the command).
Faisal
Chan kenniel wrote:
> Dear all,
>
> I have encountered such a problem, suppose I have a nesC file
> Forwarder.nc <http://Forwarder.nc>, there's a function called
> sendMsg(data) in Forwarder.nc <http://Forwarder.nc>,
> and what I want this file is able to make it as a tool to forward
> message, such that people can send message by using it.
> However, I don't know how to call the sendMsg function that is from
> Forwarder.nc <http://Forwarder.nc> file in another file like say
> client.nc <http://client.nc>.
> So could anyone help me out with this?
>
> Thanks for you guys time for reading it. Any answers or suggestions
> would be more appreciated .
>
> --
> Best wishes,
> Kenneth Chan
>
> ------------------------
> Wish you have a good day!
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
More information about the Tinyos-help
mailing list