use of com.ghgande.j2mod.modbus.io.ModbusSerialTransaction in project openems by OpenEMS.
the class ModbusRtu method getTransaction.
@Override
public ModbusTransaction getTransaction() throws OpenemsModbusException {
SerialConnection connection = getModbusConnection();
ModbusSerialTransaction trans = new ModbusSerialTransaction(connection);
trans.setRetries(0);
return trans;
}
Aggregations