can someone tell me how we can work on sending multiple msgs in
TinyOS2.0 ?
I tried both the SerialAmSenderC and the AMSenderAMC component for
this
both of them transmit just one msg and the next ones fail
what I need is for a send to be done every time some function calls
are executed and some processing is done
Note that the message buffer can only hold one message at a time.
AMSend.send() is not a blocking call; it is the start of a split-
phase operation. This means that calling send() will only "schedule"
the message for transmission. The event sendDone() is signaled after
the transmission has actually been attempted. So if you need to send
multiple messages, you need to manage this manually, not in a loop.
Please read Phil's TinyOS Programming notes (http://csl.stanford.edu/
~pal/pubs/tinyos-programming.pdf), section 4.1, to learn more about
split-phase operations.
Nigamanth
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help