I came across some code to get RSSI
from this article on stackoverflow.
However, only some code is presented, so I wrote the code as follows to check the result. However, it is questionable whether or not this has normally obtained RSSI
.
RSU.h
...
#include "veins/modules/phy/DeciderResult80211.h"
#include "veins/base/phyLayer/PhyToMacControlInfo.h"
RSU.cc
// If received some message from other node
double rssi = check_and_cast<DeciderResult80211*>(check_and_cast<PhyToMacControlInfo*>(wsm -> getControlInfo()) -> getDeciderResult()) -> getRecvPower_dBm();
EV << "RSSI Value: " << rssi << std::endl;
...