A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
adr-example.cc File Reference
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/core-module.h"
#include "ns3/forwarder-helper.h"
#include "ns3/gateway-lora-phy.h"
#include "ns3/hex-grid-position-allocator.h"
#include "ns3/log.h"
#include "ns3/lora-channel.h"
#include "ns3/lora-device-address-generator.h"
#include "ns3/lora-helper.h"
#include "ns3/lora-phy-helper.h"
#include "ns3/lorawan-mac-helper.h"
#include "ns3/mobility-helper.h"
#include "ns3/network-module.h"
#include "ns3/network-server-helper.h"
#include "ns3/periodic-sender-helper.h"
#include "ns3/periodic-sender.h"
#include "ns3/point-to-point-module.h"
#include "ns3/random-variable-stream.h"
#include "ns3/rectangle.h"
#include "ns3/string.h"
+ Include dependency graph for adr-example.cc:

Go to the source code of this file.

Functions

void OnDataRateChange (uint8_t oldDr, uint8_t newDr)
 Record a change in the data rate setting on an end device.
 
void OnTxPowerChange (double oldTxPower, double newTxPower)
 Record a change in the transmission power setting on an end device.
 

Function Documentation

◆ OnDataRateChange()

void OnDataRateChange ( uint8_t oldDr,
uint8_t newDr )

Record a change in the data rate setting on an end device.

Parameters
oldDrThe previous data rate value.
newDrThe updated data rate value.

Definition at line 48 of file adr-example.cc.

References NS_LOG_DEBUG.

◆ OnTxPowerChange()

void OnTxPowerChange ( double oldTxPower,
double newTxPower )

Record a change in the transmission power setting on an end device.

Parameters
oldTxPowerThe previous transmission power value.
newTxPowerThe updated transmission power value.

Definition at line 60 of file adr-example.cc.

References NS_LOG_DEBUG.