Hi all,

I am currently migrating some code to the new plc4j API and are a bit unsure 
what to do.
The current code is

PlcReadRequest plcReadRequest1 = new PlcReadRequest();
ReadRequestItem<byte[]> readRequestItem1 = new ReadRequestItem<>(byte[].class, 
plcConnection.parseAddress(someAddressStringHere), 2);
plcReadRequest1.addItem(readRequestItem1);

So we fetch 2 bytes from Modbus.
How do I tell him to fetch an array of length 2 in the new API?

Thanks!
Julian

Reply via email to