dear all:
In many examples exist this code:
IntMsg *message = (IntMsg *)data.data;
I am so puzzled here:
here is the definition of data and IntMsg:
TOS_Msg data;
typedef struct IntMsg {
uint16_t val;
uint16_t src;
} IntMsg;
It is so differnet from C code.
They are different kink data struct, how to convert a TOS_Msg to an IntMsg??
Could you help me to make it clear?
thanks and Best regards
Sam
---------------------------------
进入雅虎游戏嘉年华,赢取液晶显示器! _______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help