Map Station ID to Node ID #371
-
|
Hi @riebl is it possible to map the station ID to the Node ID? I am using the 5x5 grid scenario. Inside the RSUCaService, I am trying to retrieve which RSU is running this instance of the RSU CA service. I see that for CAM generation, it uses a random number as the StationID, not they actual module name (i.e."rsuB2"). I am not sure if there already exists a function to map the station ID to the specific module name / node ID. Or maybe there is another way from within the RSUCAService.cc file to parse which node is currently running that instance. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I found it as a member of the mIdentity object. if you are not yet initializing an mIdentity object for some reason, you can extract it using the facilities. |
Beta Was this translation helpful? Give feedback.
I found it as a member of the mIdentity object.
mIdentity->host->getFullName()if you are not yet initializing an mIdentity object for some reason, you can extract it using the facilities.
getFacilities().get_const<Identity>().host->getFullName()