Skip to content

Class ProcessSerialConnection

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

Process-based serial connection that uses external processes for I/O like mpremote does. This approach avoids the FileStream blocking issues on Linux serial devices.

csharp
public sealed class ProcessSerialConnection : IDisposable

Inheritance

objectProcessSerialConnection

Implements

IDisposable

Inherited Members

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

Constructors

ProcessSerialConnection(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.

OpenAsync()

Opens the serial connection using process-based configuration.

ReadWithTimeoutAsync(int)

Reads available data from the port using timeout-controlled cat.

WriteAsync(string)

Writes data to the serial port using echo command.

Released under the Apache License 2.0.