Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem on accessing numberOfPacketsToSend parameter of SimpleLoRaApp from another module. #53

Open
lingcy0328 opened this issue Nov 10, 2021 · 0 comments

Comments

@lingcy0328
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant