Merge remote-tracking branch 'origin/test-training2' into test

This commit is contained in:
joylink_zhangsai 2023-03-20 11:11:06 +08:00
commit 0a9d878583

View File

@ -46,8 +46,8 @@ public class AfcTransferServer implements ApplicationRunner {
@Override
public void initChannel(SocketChannel ch) throws Exception {
ChannelPipeline pipeline = ch.pipeline();
pipeline.addLast(new ModbusTcpCodec(new ModbusRequestEncoder(), new ModbusResponseDecoder()));
pipeline.addLast(new ModbusTcpCodec(new ModbusResponseEncoder(), new ModbusRequestDecoder()));
pipeline.addLast(new ModbusTcpCodec(new ModbusRequestEncoder(), new ModbusRequestDecoder()));
pipeline.addLast(new ModbusTcpCodec(new ModbusResponseEncoder(), new ModbusResponseDecoder()));
pipeline.addLast(new AfcMessageHandler(plcGatewayConnectManager, modbusMessageHandler));
}
})