I am implementing ACK functionality to be sent by RSU and I am trying to get frameID
in BaseWaveApplLayer
class. It has cMessage
object but I am unable to get correct freamID
I tried to use messageId
but it is different than the sent from nodes. Also tested the getEncapsulationId()
but that is as well different. How can I get frameId
sent by sender?
void BaseWaveApplLayer::handleLowerMsg(cMessage* msg) {
WaveShortMessage* wsm = dynamic_cast<WaveShortMessage*>(msg);
ASSERT(wsm);
if (BasicSafetyMessage* bsm = dynamic_cast<BasicSafetyMessage*>(wsm)) {
receivedBSMs++;
onBSM(bsm);
}
}