Attempts to verify if the reader/writer is running on this port
| 361 | |
| 362 | // Attempts to verify if the reader/writer is running on this port |
| 363 | bool ArduinoInterface::isPortCorrect(const std::wstring& portName) { |
| 364 | // Attempts to verify if the reader/writer is running on this port |
| 365 | SerialIO port; |
| 366 | std::string version; |
| 367 | DiagnosticResponse dr = internalOpenPort(portName, false, true, version, port); |
| 368 | port.closePort(); |
| 369 | return dr == DiagnosticResponse::drOK; |
| 370 | } |
| 371 | |
| 372 | // Attempt to sync and get version |
| 373 | DiagnosticResponse ArduinoInterface::attemptToSync(std::string& versionString, SerialIO& port) { |