How can I stop udp application from sending packets while the simulation continues ? stoptime

11 views
Skip to first unread message

bekhtimu...@gmail.com

unread,
Oct 12, 2016, 6:02:37 AM10/12/16
to omn...@googlegroups.com, bekhti....@univ-paris13.fr

Hello,
I have several mobile node starting from a commun position to different destinations. While they are moving, those nodes send them positions to the BS. it happens that some nodes need more time than other to reach them destinations. So, How can I stop the drone transmission, ones the node has arrived to his destination?

I have tried this , but it doesn t work

simtime_t d = simTime();  
            
 this->getParentModule()->getSubmodule("udpApp",0)->par("stopTime").setDoubleValue(d.dbl());

Merci
Reply all
Reply to author
Forward
0 new messages