Platforms to show: All Mac Windows Linux Cross-Platform

Back to SerialPortMBS class.

SerialPortMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SerialPort MBS Util Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ❌ No All
The internal object reference.

(Read only property)

SerialPortMBS.Lasterror as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SerialPort MBS Util Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ❌ No All
The last error code.

The error code is zero for no error.
On Windows you get the windows system error codes and on macOS and Linux the unix system error codes.

The methods and properties raise IOException in case of errors and include the error codes.
(Read only property)

SerialPortMBS.Path as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SerialPort MBS Util Plugin 23.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
The path used to open the serial port.
Example

dim port as new SerialPortMBS

// open a port
port.Open("COM1")

// check the path
MessageBox port.Path

Set by Open() method.
Value is e.g. "COM1"
(Read only property)

SerialPortMBS.Suspended as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SerialPort MBS Util Plugin 22.3 ✅ Yes ✅ Yes ✅ Yes ❌ No All
Checks suspension state.

Checks suspension state.
While suspended, we do not trigger event and clear incoming buffer regularly.
(Read only property)

SerialPortMBS.Tag as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SerialPort MBS Util Plugin 23.0 ✅ Yes ✅ Yes ✅ Yes ❌ No All
The tag property.

You can store whatever you like in this property to read it later.
(Read and Write property)

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...