Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#78 Can not read encoded attribute in Java

open
nobody
Java API
5
2013-07-09
2012-08-09
Ingvord
No

Currently DeviceAttribute class has method extractDevEncoded which then could be decoded by client. For example:

...
DevEncoded encoded = devAttribute.extractDevEncoded();

fr.esrf.tangoatk.widget.image.IImageFormat format = TangoUtils.createImageFormat(encoded.encoded_format);
format.setData(encoded.encoded_data);
...

But when client tries to read encoded attribute through proxy Tango API throws an exception:

Device_2Impl.read_attributes():API_DatTypeNotSupported(Attribute encoded data type not supported !)
DeviceProxy(test/jtts/0).read_attribute():TangoApi_CANNOT_READ_ATTRIBUTE(Cannot read attribute(s): encoded)

It would be very nice to have a possibility to read encoded attributes (even raw data).

Discussion

    • Category: --> Java API