Hi, Can you tell me the steps to check for acknowledgements for packets send in tinyos?
I did this: event void AMSend.sendDone(message_t *msg, error_t error) { dbg("All", "%s Send Done\n", sim_time_string()); if(call PacketAcknowledgements.wasAcked(msg)) dbg("All", "%s Acknowledged\n", sim_time_string()); else dbg("All", "%s not acked\n", sim_time_string()); } task void send() { call PacketAcknowledgements.requestAck(&msg); } event void TrickleTimer.fired[uint8_t id]() { if (call AMSend.send(AM_BROADCAST_ADDR, &m_buf, sizeof(dissemination_message_t)) == SUCCESS) { post send(); } But i am getting an error as msg is undefined in the "task void send() line". Bo i tried passing msg as a parameter to send(), but that is not possible. How to solve this error? Please help me, Regards, Jisha Mary Jose ......jMj......
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help