I have written code to read file and create dynamic attribute accordingly in “init” method. But while launching device first time, it is not reflecting on atkpanel until I hit “init” command.
Meanwhile, I have printed each lines of file while reading it and it is shown on console perfectly. It means “init” method is called automatically while launching the device and file is also read. But not reflecting on atkpanel until I hit “init”.
When adding dynamic attributes to a device class you change the device interface. atkpanel will not read the new interface automatically. Clicking on " init" forces atkpanel to build a new proxy to the device and discover the new interface.
In TANGO V9 an event is sent when the interface changes. This will enable clients like atkpanel to detect the interface change automatically.
Assigning properties to an attribute means storing them in the database. Sorry I don’ t have an example of code right now to share with you.