Well, first, you can't put executable code in a data definition;
second, changing the size of the TOS_Msg struct at runtime
would make anything that acesses fields with msg.field break
where "field" comes after the changed element; and third, all
the nodes in the system have to agree on the message size in
order to find the crc...
You can, of course, re-write the message handling code to not
use compile time msg.field accesses anywhere after the data
packet array.
The message system does allow you to specify the number of
significant bytes in the data packet using the length field.
That is probably your best option.
MS
jagan nath wrote:
What u can do is put a switch case in the AM.h,
for each case u want u can define the TOSH_DATA_LENGTH for various
sizes. I think this will work, May be u can use a global variable to
define the cases
jagan
On 4/26/06, Tony L <[EMAIL PROTECTED]> wrote:
Hi,
I am using the Pong application on tmote sky. I want to send different
packet size when I invoke java PingPong. For example, the mote will
send 12
bytes Pong message when I invoke "java PingPong 12". Is there any idea
how
to change the PongMsg.h file or PongM.nc file? Thanks.
Best regards
Tony
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help