On 28 Jan 2019, at 13:39, Marcello Sgarbi <
marcel...@gmail.com> wrote:
>
> I'm thinking that I'm making some mistake in the return type but I don't know how to return a type "ubyte".
Indeed, I would suspect this to be the problem as well. The SUMO Wiki lists the result type as "byte", but you're calling a method to read an Integer (two Bytes). You'll need to write your own function for reading a Byte, I'm afraid. You might simply follow the template of the other (for Integer, Double, ...) functions:
https://github.com/sommer/veins/blob/veins-4.7.1/src/veins/modules/mobility/traci/TraCICommandInterface.cc#L701
Best,
Christoph
--
Jun.-Prof. Dr.-Ing. Christoph Sommer
Cooperative Mobile Systems (CCS Labs)
Heinz Nixdorf Institute, Paderborn University, Germany
http://www.ccs-labs.org/~sommer/