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