mirror of
https://gitlab.com/manzerbredes/paper-lowrate-iot.git
synced 2025-05-01 17:37:45 +00:00
10 lines
330 B
C++
10 lines
330 B
C++
|
|
#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");
|
|
}
|