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
[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