[Tinyos-help] How to call functions in other nesC file

Amartya amartya.de at sensactapps.com
Wed Sep 19 01:09:08 PDT 2007


Hi Kenneth,

Isn’t that function sendMsg there  in provides {
.} of Forwarder.nc or
exposed through some interface ?
If it’s 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: tinyos-help-bounces at Millennium.Berkeley.EDU
[mailto:tinyos-help-bounces at Millennium.Berkeley.EDU] 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! 




More information about the Tinyos-help mailing list