setResponseCode method

void setResponseCode(
  1. ModbusResponseCode code
)

Implementation

void setResponseCode(ModbusResponseCode code) {
  ModbusAppLogger.fine("Request completed with code: ${code.name}");
  if (_responseCompleter.isCompleted) {
    reset();
  }
  _responseCompleter.complete(code);
}