kochedykov / jlibmodbus

JLibModbus - is an implementation of the Modbus protocol v1.1b in java language. Java modbus library. It works. Welcome.
http://kochedykov.github.io/jlibmodbus/
Apache License 2.0
307 stars 128 forks source link

A problem with FrameEventListener #79

Open mastera74 opened 2 years ago

mastera74 commented 2 years ago

I understand correctly? The master writes to the slave, the event. The master reads from the slave, an event. Does not work.

FrameEventListener listener = new FrameEventListener() { @Override public void frameSentEvent(FrameEvent event) { System.out.println("frame sent " + DataUtils.toAscii(event.getBytes())); } @Override public void frameReceivedEvent(FrameEvent event) { System.out.println("frame recv " + DataUtils.toAscii(event.getBytes())); } }; modbusSlave.addListener(listener);