[Tinyos-host-mote-wg] [Tinyos-2.0wg] nesC passing strings to generic components/modules

Joe Polastre joe.polastre at gmail.com
Wed May 18 21:46:30 PDT 2005


I have tried to pass a string and I get the following error when I use
the string inside "unique" inside of a module:

argument to `unique' must be a string

same thing happens with uniqueCount

I've defined by components with:

generic configuration BusArbitrationC(char busname[]) { ... }

generic module BusArbitrationM(char busname[]) { 
  void foo() {
    uint8_t bar = uniqueCount(busname);
  }
}

char name[] seems to be acceptible to nesC while (rationally) char* is not

I've checked the OSKI code and Phil seems to use char[] and char* in
various pieces of code, but none of that code is actually compiles.

suggestions?

-Joe

_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg


More information about the Tinyos-host-mote-wg mailing list