supersocket - SuperSocket.SerialIO 2.0.0-beta.10.21

Serial IO support for SuperSocket

PM> Install-Package SuperSocket.SerialIO -Version 2.0.0-beta.10.21 -Source https://www.myget.org/F/supersocket/api/v3/index.json

Copy to clipboard

> nuget.exe install SuperSocket.SerialIO -Version 2.0.0-beta.10.21 -Source https://www.myget.org/F/supersocket/api/v3/index.json

Copy to clipboard

> dotnet add package SuperSocket.SerialIO --version 2.0.0-beta.10.21 --source https://www.myget.org/F/supersocket/api/v3/index.json

Copy to clipboard
<PackageReference Include="SuperSocket.SerialIO" Version="2.0.0-beta.10.21" />
Copy to clipboard
source https://www.myget.org/F/supersocket/api/v3/index.json

nuget SuperSocket.SerialIO  ~> 2.0.0-beta.10.21
Copy to clipboard

> choco install SuperSocket.SerialIO --version 2.0.0-beta.10.21 --source https://www.myget.org/F/supersocket/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "supersocket" -SourceLocation "https://www.myget.org/F/supersocket/api/v2"
Install-Module -Name "SuperSocket.SerialIO" -RequiredVersion "2.0.0-beta.10.21" -Repository "supersocket" -AllowPreRelease
Copy to clipboard

Browse the sources in this package using Visual Studio or WinDbg by configuring the following symbol server URL: https://www.myget.org/F/supersocket/api/v2/symbolpackage/


SuperSocket.SerialIO

Join the chat at https://gitter.im/supersocket/community Build Status NuGet Version NuGet Download

Serial IO support for SuperSocket

The sample code below shows us how we build a serial IO communication server with SuperSocket.

var host = SuperSocketHostBuilder
    .Create<StringPackageInfo, CommandLinePipelineFilter>()
    .UsePackageHandler(async (s, package) =>
        {
            await s.SendAsync(Encoding.UTF8.GetBytes(package.ToString() + "\r\n"));
        })
    .ConfigureSuperSocket(options =>  
        {
            options.Name = "SIOServer";
            options.Listeners = new[] {
                new SerialIOListenOptions()
                {
                    PortName = "COM2",   // serial port name
                    BaudRate = 9600,  // baudRate of the serial port
                    Parity = Parity.None,
                    StopBits = StopBits.None,
                    Databits = 5;  // value limit 5 to 8
                }
            };
        })
    .UseSerialIO()
    .ConfigureLogging((hostCtx, loggingBuilder) => {
        loggingBuilder.AddConsole();
    }).Build();

You also can leave the infromation of Serial IO in the configuration.

{
    "serverOptions": {
        "name": "SIOServer",
        "listeners": [
            {
                "path": "sio://COM1/?BaudRate=9600&Parity=Odd&StopBits=2&Databits=7"
            }
        ]
    }
}
  • .NETFramework 5.0
    • SuperSocket.Primitives (>= 2.0.0-beta.10)
    • System.IO.Ports (>= 4.7.0)
  • .NETStandard 2.1
    • SuperSocket.Primitives (>= 2.0.0-beta.10)
    • System.IO.Ports (>= 4.7.0)
  • .NETFramework 5.0: 5.0.0.0
  • .NETStandard 2.1: 2.1.0.0

Owners

Kerry Jiang

Authors

SuperSocket Developer Community

Project URL

https://github.com/SuperSocket/SuperSocket.SerialIO

License

Unknown

Info

12 total downloads
4 downloads for version 2.0.0-beta.10.21
Download (16.96 KB)
Download symbols (16.14 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
2.0.0-beta.10.21 16.96 KB Wed, 02 Jun 2021 07:17:21 GMT 4
2.0.0-beta.10.20 16.96 KB Wed, 02 Jun 2021 06:48:34 GMT 1
2.0.0-beta.10 16.95 KB Wed, 02 Jun 2021 07:55:37 GMT 2
2.0.0-beta.9.19 9.41 KB Wed, 26 May 2021 07:47:59 GMT 1
2.0.0-beta.9 9.4 KB Wed, 26 May 2021 07:44:54 GMT 2
2.0.0-beta.8.2 9.43 KB Sun, 14 Mar 2021 19:44:20 GMT 2