SerialPort.Path
---------------

Queries the path used to open the serial port.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SerialPort](component_SerialPort.md) | [13.0](newinversion130.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "SerialPort.Path"; PortReference ) 

**MBS**( **"SerialPort.Path";** /\* Queries the path used to open the serial port. \*/  
**$PortReference**) /\* The reference number of the port. You get this number from [SerialPort.Open](SerialPortOpen.md) when you open the port.e.g. $port \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PortReference | The reference number of the port. You get this number from [SerialPort.Open](SerialPortOpen.md) when you open the port. | $port |

### Result

Returns text or error.

### Description

Queries the path used to open the serial port.  
This is the value passed to [SerialPort.Open](SerialPortOpen.md) function.  
Value is e.g. "COM1"  
### See also

- [SerialPort.List](SerialPortList.md)
- [SerialPort.Open](SerialPortOpen.md)
- [SerialPort.OpenPath](SerialPortOpenPath.md)
- [SerialPort.Read](SerialPortRead.md)
- [SerialPort.Setup](SerialPortSetup.md)
- [SerialPort.Write](SerialPortWrite.md)

### Release notes

- **Version 13.0**
    - Added [SerialPort.Path](https://www.mbsplugins.eu/SerialPortPath.shtml) function.

### Blog Entries

- [New in MBS FileMaker Plugin 13.0](https://www.mbsplugins.de/archive/2023-01-24/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 12.6pr1](https://www.mbsplugins.de/archive/2022-12-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 29th November 2022 , last changed 29th November 2022

  
[SerialPort.OpenPath](SerialPortOpenPath.md) - [SerialPort.Read](SerialPortRead.md)

[HTML Version](SerialPortPath.shtml)