Hi Kenneth, Isnt that function sendMsg there in provides { .} of Forwarder.nc or exposed through some interface ? If its there then u can use that function in other file(client.nc.) by wiring that,provided sendMsg has to be there in symbol space while building client.nc.
Regards, Amartya ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chan kenniel Sent: Wednesday, September 19, 2007 12:53 PM To: tinyos forum Subject: [Tinyos-help] How to call functions in other nesC file Dear all, I have encountered such a problem, suppose I have a nesC file Forwarder.nc, there's a function called sendMsg(data) in 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 file in another file like say 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@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help