You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have problem on accessing numberOfPacketsToSend parameter of SimpleLoRaApp.cc from LoRaMac.cc. I need to make sure the value of numberOfPacketSend can be read on LoRaMac.cc. I tried to use:
auto *sla = check_and_cast<SimpleLoRaApp *>(getParentModule()->getParentModule()->getSubmodule("SimpleLoRaApp");
int nTSP = sla->numberOfPacketsToSend;
WATCH(nTSP); //to inspect the value of nTSP in Qtenv.
but when I run the simulation, the nTSP value showed in the Qtenv is not equal to the value I set in the .ini file (it shows around 20000 but I set only 6). Can anyone tell me what is wrong?
The text was updated successfully, but these errors were encountered:
I have problem on accessing numberOfPacketsToSend parameter of SimpleLoRaApp.cc from LoRaMac.cc. I need to make sure the value of numberOfPacketSend can be read on LoRaMac.cc. I tried to use:
auto *sla = check_and_cast<SimpleLoRaApp *>(getParentModule()->getParentModule()->getSubmodule("SimpleLoRaApp");
int nTSP = sla->numberOfPacketsToSend;
WATCH(nTSP); //to inspect the value of nTSP in Qtenv.
but when I run the simulation, the nTSP value showed in the Qtenv is not equal to the value I set in the .ini file (it shows around 20000 but I set only 6). Can anyone tell me what is wrong?
The text was updated successfully, but these errors were encountered: