riebl / artery

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
204 stars 132 forks source link

ExampleService class extract CAM #258

Closed ansb5 closed 1 year ago

ansb5 commented 2 years ago

Hi @riebl . I'm using ExampleService.cc to create another service. But I don't know how to get de CAM message fromCaService. In ExampleService::receiveSignal there is cObject*. Have I to cast it to extract the CAM or is there another way to do this?

Thanks.

riebl commented 2 years ago

You can cast the cObject* to CaObject* if the source is the CamReceived or CamSent signal.