Hi,
A TOSMsg has 29 bytes of payload...For some convenience, I want to convert these 29 in to a "struct", for examples
struct info {
char name[10];
uint8_t age ;
...
}
How do I go abt doing this so that in my program, I can just use things like  "John.name" or "John.age" (where "John" is variable of the type "info")
instead of using "msg.data[0]" or "msg.data[11]"....
 
Thanks for helping...
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to