Dear all,

Suppose I got two nesC files, one is client.nc, and another is server.nc,
and client.nc wanna call a function that is in server.nc.
and for example, in server.nc file, I have a command that is written as this

command result_t Foo(char  *data)
{
        ....
       return SUCCESS;
}

and then in client.nc file, I wanna implement it like this:

int a=0;
....
if( a>3 )
    call Foo(data)

....

that's all what I wanna implement, however, I don't know what has to be
included in server.nc and client.nc file,
like use something, call something, include something, I don't know what is
necessary for them.
Could anyone help me out with how to write the essence of server.nc and
client.nc please. I am new to nesC, any
suggestion would be very appreciated.

And thanks for your time reading it.

--
Best wishes,
Kenneth Chan

------------------------
Wish you have a good day!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to