supersocket - SuperSocket.SerialIO 2.0.0-beta.10.20
Serial IO support for SuperSocket
PM> Install-Package SuperSocket.SerialIO -Version 2.0.0-beta.10.20 -Source https://www.myget.org/F/supersocket/api/v3/index.json
> nuget.exe install SuperSocket.SerialIO -Version 2.0.0-beta.10.20 -Source https://www.myget.org/F/supersocket/api/v3/index.json
> dotnet add package SuperSocket.SerialIO --version 2.0.0-beta.10.20 --source https://www.myget.org/F/supersocket/api/v3/index.json
source https://www.myget.org/F/supersocket/api/v3/index.json
nuget SuperSocket.SerialIO ~> 2.0.0-beta.10.20
Copy to clipboard
> choco install SuperSocket.SerialIO --version 2.0.0-beta.10.20 --source https://www.myget.org/F/supersocket/api/v2
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.20" -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
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
OwnersKerry Jiang |
AuthorsSuperSocket Developer Community |
Project URLhttps://github.com/SuperSocket/SuperSocket.SerialIO |
LicenseUnknown |
Info46 total downloads |
16 downloads for version 2.0.0-beta.10.20 |
Download (16.96 KB) |
Download symbols (16.13 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
2.0.0-beta.21.23 | 31.7 KB | Sun, 05 May 2024 01:36:59 GMT | 5 | ||||
2.0.0-beta.10.21 | 16.96 KB | Wed, 02 Jun 2021 07:17:21 GMT | 7 | ||||
2.0.0-beta.10.20 | 16.96 KB | Wed, 02 Jun 2021 06:48:34 GMT | 16 | ||||
2.0.0-beta.10 | 16.95 KB | Wed, 02 Jun 2021 07:55:37 GMT | 5 | ||||
2.0.0-beta.9.19 | 9.41 KB | Wed, 26 May 2021 07:47:59 GMT | 2 | ||||
2.0.0-beta.9 | 9.4 KB | Wed, 26 May 2021 07:44:54 GMT | 6 | ||||
2.0.0-beta.8.2 | 9.43 KB | Sun, 14 Mar 2021 19:44:20 GMT | 5 |