Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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 |
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 |
Returns the port reference value which you pass to other SerialPort functions.
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) ]
This function checks for a license.
Created 29th August 2023, last changed 31st August 2023