mirror of
https://gitlab.com/manzerbredes/paper-lowrate-iot.git
synced 2025-05-01 17:37:45 +00:00
Init final simulator source
This commit is contained in:
parent
23e8f7f688
commit
9272834371
7 changed files with 302 additions and 0 deletions
10
ns3-simulator/modules/callbacks.cc
Normal file
10
ns3-simulator/modules/callbacks.cc
Normal file
|
@ -0,0 +1,10 @@
|
|||
|
||||
#include "modules.hpp"
|
||||
|
||||
void PktReceived(std::string nodeName,Ptr< const Packet > packet, const Address &address){
|
||||
NS_LOG_UNCOND("Node " << nodeName << " receive a packet");
|
||||
}
|
||||
|
||||
void EnergyUpdated(std::string nodeName,double oldValue, double newValue){
|
||||
NS_LOG_UNCOND("Node " << nodeName << " consumes " << newValue << "J");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue