[Tinyos-help] MsgReader doesn't work correctly
Flavio Pompermaier
fla83tnn at yahoo.it
Thu Apr 3 07:27:43 PDT 2008
I forgot to post the solution to my own question.
The problem was that the AM type was different from the Serial one. This last in fact was a pure number chosen at random (22).
The solution has been to istantiate the two as the following:
//before was new SerialAMSenderC(22), whereas AM_DATA was 28 in the header file..
components new SerialAMSenderC(AM_DATA);
components new AMSender(AM_DATA);
The two type must be the same of the one declared in the header file...:D
In this way everything goes fine!!
I hope this will help someone else.
Flavio
Inviato da Yahoo! Mail.
La casella di posta intelligente.
http://it.docs.yahoo.com/mail/overview/index.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080403/b698b0d8/attachment.htm
More information about the Tinyos-help
mailing list