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!
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
Hi Reynald,

thank you very much.

Best regards, Olivier Neveu
 
Register or login to create to post a reply.