A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
adr-example.cc File Reference
#include "ns3/core-module.h"
#include "ns3/lorawan-module.h"
#include "ns3/mobility-helper.h"
#include "ns3/point-to-point-helper.h"
#include "ns3/rectangle.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 32 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 44 of file adr-example.cc.

References NS_LOG_DEBUG.