----- Original Message -----

Hello,

Try this:

In your configuration file:

implementation {
  components APP_M, RandomC, ActiveMessageC;
 
  
  APP_M.AMPacket -> ActiveMessageC;
  APP_M.Packet -> ActiveMessageC;
  APP_M.PacketAcknowledgements -> ActiveMessageC;

....
}


module APP_M {
 provides {...}

 uses {
                interface PacketAcknowledgements;
        .....
 }
}

implementation {

        SendSomething() {
                ....

                call PacketAcknowledgements.requestAck(p_aodv_msg_);
    
            if( !send_pending_ ) {
                  if( call SubSend.send( nexthop, p_aodv_msg_, len + 
AODV_MSG_HEADER_LEN ) == SUCCESS ) {
                send_pending_ = TRUE;
                    return SUCCESS;
              }
                                        
                }

        }

}

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to