paper-lowrate-iot/ns3-simulator/modules/callbacks.cc

11 lines
330 B
C++
Raw Normal View History

2019-04-12 13:52:06 +02:00
#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");
}