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

Joe Polastre joe.polastre at gmail.com
Thu May 19 00:24:01 PDT 2005


I sent this to @barnowl.org but it doesn't look like it went through...

---

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-8051wg mailing list