chrisdutz commented on issue #1935:
URL: https://github.com/apache/plc4x/issues/1935#issuecomment-2662456627

   Oh yeah ... thanks for spotting that .... should be fixed in a few minutes 
as soon as the site-build is through.
   
   I think having a connected entity, cloning that and passing it along can 
cause really odd problems. 
   Because in this case, every access to a property will cause accessing the 
PLC via the connection. 
   Or are you referring to doing a detached read and then cloning the entity? 
That should work as long as you don't fetch too often, as every fetch costs a 
dynamic class instance on the class memory.
   
   I would really strongly encourage you not to do  the first and still not do 
to the second option. 
   In general I would really like to deprecate the whole OPM part of plc4x.
   
   Why don't you simply do a read operation via the PlcConnectionCache and 
assemble a Pojo from the results and then pass that around? I'd be happy to 
provide you with an example, if you give me a bit more detailed example (can 
send me via email directly, if you don't want to share publically)
   
   Chris


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to