Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
SerialPort.OpenPath
Opens a special file, device or pipe.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
SerialPort | 13.4 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Path | The native path to open. | "\\\\.\\pipe\\Test" | |
Mode | The opening mode. Can be Read, Write or ReadWrite. Default is ReadWrite. |
"ReadWrite" | Optional |
Result
Returns the port reference value which you pass to other SerialPort functions.
Description
Opens a special file, device or pipe.This allows you to e.g. open a pipe on Windows.
Serial Port reference numbers are starting at 28000 and counting up for each new port.
Examples
Open pipe and send message:
Set Variable [ $serial ; Value: MBS( "SerialPort.OpenPath"; "\\\.\pipe\Test") ]
Set Variable [ $r ; Value: MBS( "SerialPort.Write"; $serial; "Hello World") ]
Set Variable [ $r ; Value: MBS( "SerialPort.Close"; $serial) ]
See also
Release notes
- Version 13.4
- Added SerialPort.OpenPath function, so you can use SerialPort functions to open special files or pipes.
- Added SerialPort.WaitNamedPipe function to wait for a pipe and use with SerialPort.OpenPath on Windows.
Blog Entries
- News in MBS FileMaker Plugin 13.4
- Neues MBS Plugin 13.4 für Claris FileMaker
- MBS Plugin 13.4 for Claris FileMaker - More than 7100 Functions In One Plugin
- MBS FileMaker Plugin, version 13.4pr7
- MBS FileMaker Plugin, version 13.4pr6
This function checks for a license.
Created 29th August 2023, last changed 31st August 2023
