Skip to content

Class LinuxSerialConnection

Namespace: Belay.Core
Assembly: Belay.Core.dll

Minimal Linux-compatible serial connection using file I/O operations. Simple cross-platform serial communication for MicroPython devices.

csharp
public sealed class LinuxSerialConnection : IDisposable

Inheritance

objectLinuxSerialConnection

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

LinuxSerialConnection(string)

Initializes a new instance of the class.

Properties

IsOpen

Gets a value indicating whether the connection is open.

Methods

Close()

Closes the serial connection.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetStream()

Gets the underlying stream for advanced protocol operations.

OpenAsync()

Opens the serial connection.

ReadExistingAsync()

Reads existing data from the port with simple timeout.

WriteAsync(string)

Writes a string to the serial port.

Released under the Apache License 2.0.