Hello everyone ,
I'm having some difficulty in debug my application. My question is if the
component ActiveMessageC can be used with the component
SerialActiveMessageC, without interfere with each other?
In my application when the event AMSend.sendDone (message_to * BufPtr,
error_t error) is signal I try to print the value of the sent message, and I
get a constant value that does not match the value sent.
This is the piece of code used to obtain the value sent:
AMSend.sendDone event void (* message_to BufPtr, error_t error) {
radio_count_msg_t * rcm = NULL;
if (& packet == BufPtr) {
rcm = (radio_count_msg_t *) call Packet.getPayload (BufPtr, NULL);
counter_val = rcm -> counter;
locked = FALSE;
post sendSerialMessage ();
}
}
In this example, counter_val is the value that will be sent by
SerialAMSend.send (AM_BROADCAST_ADDR, & packet_one, sizeof
(test_serial_msg_t)).
Can I use both without running the risk of coming into conflict?
Please, I need help trying to understand what is happening, or suggestions
that help me to debug my application.
Thank you very much,
--
Ricardo Mascarenhas
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help