Open mastera74 opened 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);
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);