digitalpetri / modbus

High-performance, non-blocking, zero-buffer-copying Modbus for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to read data in batches

17802592576 opened this issue · comments

commented

I just started using this project, and I'm very confused about how to read data in batches. If you can, please guide me to complete this code.

Batching of data like you mention in your email[1] is a "higher level" operation not implemented by this library.

I'm not familiar with how modbus4j works, but I assume this is some function that takes a list of register address + datatype (mapped over multiple 16-bit registers if necessary) and "optimize" it into a group of requests that would cover all the registers needed.

[1] image

commented

Thank you very much for your response, I will try other ways to slove this problem.My best to you.