Yep, you just have to include the array inside the type of message struct. Also, you can assign structs with = even when their type include an array (but sometimes it is a bit tricky so use memcpy if you feel more confortable).
On Wed, Feb 23, 2011 at 8:49 AM, 崔晓宗 <[email protected]> wrote: > you can send the string as a char array, which is similar to sending > integers. > 2011/2/23 Shamali Gunawardena <[email protected]> >> >> Hi, >> >> This is a pretty basic question. I need to know how I can send a string >> (eg Hello) in nesC. I know how to send integers (unit_16_t and etc) >> How do I specify the data type and how do I assign the value. >> >> thanks >> >> Regards, >> >> Shamali >> >> >> >> >> _______________________________________________ >> Tinyos-help mailing list >> [email protected] >> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > -- > Regards, > Xiaozong Cui > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
