Tango::DevEnum and push_change_event

Hello Dear All,

I want to use “push_change_event” with a “DevEnum” attribute.
I found that the DevEnum is equivalent to a short for Tango (https://tango-controls.readthedocs.io/en/latest/development/device-api/device-server-writing.html).
So I tested the “push_change_event” function with a cast of the attribute to a short variable and it worked.
But it is the right way to do this ?

Best regards, Olivier Neveu

Hi Olivier,

Sorry for the delay in the answer.
Yes, good deduction! This is the right way to do it!

Hi Reynald,

thank you very much.

Best regards, Olivier Neveu