On Monday 18 June 2007 06:17, Chan kenniel wrote:
> 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.
You might want to read
http://csl.stanford.edu/~pal/pubs/tinyos-programming.pdf, which provides some
good information about nesC in the context of TinyOS.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help