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

   I also updated the entity manager code a bit and now, by adding this method 
to your FooRxEntity class:
   
   ```
   
       public void updateAllTheTags() {
           // Dummy ...
       }
   ```
   You can trigger an update of all properties of the entity. 
   
   I would reccomend you add that method to your entity, then you add a 
sensible cacheDurationMillis value to each @PlcTag annotation. Then instead of 
calling "entityManager.read" you do the "connect" and in your look you simply 
call "entity.updateAllTheTags()" to force a bulk read. If all goes right, you 
should be utilizing the new modbus optimizer to do a lot more efficient bulk 
reads and then you simply use the entity.
   
   So I just pushed my changes ... there's one code-change needed to make the 
"updateAllTheTags" thing work, so be sure to pull the latest changes. 
   
   I hope I was able to help solve your problem? If not, ping me and I'll do my 
best to help.


-- 
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