push_archive_event and WO attributes: supported?

Is pushing manually (in the code) events for write only attributes supported?
set_archive_event for example is accepted as command and let clients to subscribe to it but then it seems like push_archive_event is only setting the "read part" of the attribute and in fact extract_set called by clients throws exception.
Am I missing something ?
Hi,

Yes, pushing manually event for WO attribute is supported. However, I confirm the in-coherency described in your post.
In such a case, the DeviceImpl::push_archive_event() does not set one of the internal DeviceAttribute data. This is what triggers
the exception in the event callback if you try to use DeviceAttribute::extract_set() method.

This will be fixed for next release and I am going to register a bug entry in order to not forget the fix

Regards

Emmanuel
Hi,
thanks.

Graziano
 
Register or login to create to post a reply.