New method to return full system path of the serial port
This commit is contained in:
parent
0fc80bbf20
commit
c7cf3cbbfb
|
@ -1260,6 +1260,13 @@ public final class SerialPort
|
||||||
*/
|
*/
|
||||||
public final String getSystemPortName() { return (isWindows ? comPort.substring(comPort.lastIndexOf('\\')+1) : comPort.substring(comPort.lastIndexOf('/')+1)); }
|
public final String getSystemPortName() { return (isWindows ? comPort.substring(comPort.lastIndexOf('\\')+1) : comPort.substring(comPort.lastIndexOf('/')+1)); }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the operating system-defined device path corresponding to this serial port.
|
||||||
|
*
|
||||||
|
* @return The system-defined device path of this serial port.
|
||||||
|
*/
|
||||||
|
public final String getSystemPortPath() { return comPort; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets a description of the port as reported by the device itself.
|
* Gets a description of the port as reported by the device itself.
|
||||||
* <p>
|
* <p>
|
||||||
|
|
Loading…
Reference in New Issue