Skip to content

Method CreateSerialDevice ​

Namespace: Belay.Extensions.Factories
Assembly: Belay.Extensions.dll

CreateSerialDevice(string, int?) ​

Creates a device instance with serial communication.

csharp
SimplifiedDevice CreateSerialDevice(string portName, int? baudRate = null)

Parameters ​

portName string

The serial port name.

baudRate int?

Optional baud rate (uses configuration default if not specified).

Returns ​

SimplifiedDevice

A configured device instance.

Released under the Apache License 2.0.