19 lines
339 B
C#
19 lines
339 B
C#
using System.IO.Ports;
|
|
|
|
namespace TheXamlGuy.Framework.Serial;
|
|
|
|
public class SerialStreamer : ISerialStreamer
|
|
{
|
|
private readonly SerialPort serialPort;
|
|
|
|
public SerialStreamer(SerialPort serialPort)
|
|
{
|
|
this.serialPort = serialPort;
|
|
}
|
|
|
|
public Stream Create()
|
|
{
|
|
return serialPort.BaseStream;
|
|
}
|
|
}
|