ferdikurnazdm.Blocks.SmithProtocol 1.0.2

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package ferdikurnazdm.Blocks.SmithProtocol --version 1.0.2
                    
NuGet\Install-Package ferdikurnazdm.Blocks.SmithProtocol -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ferdikurnazdm.Blocks.SmithProtocol" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ferdikurnazdm.Blocks.SmithProtocol" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="ferdikurnazdm.Blocks.SmithProtocol" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ferdikurnazdm.Blocks.SmithProtocol --version 1.0.2
                    
#r "nuget: ferdikurnazdm.Blocks.SmithProtocol, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ferdikurnazdm.Blocks.SmithProtocol@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ferdikurnazdm.Blocks.SmithProtocol&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=ferdikurnazdm.Blocks.SmithProtocol&version=1.0.2
                    
Install as a Cake Tool

Smith Protocol

  /$$$$$$                /$$   /$$     /$$                               
 /$$__  $$              |__/  | $$    | $$                               
| $$  \__/ /$$$$$$/$$$$  /$$ /$$$$$$  | $$$$$$$                          
|  $$$$$$ | $$_  $$_  $$| $$|_  $$_/  | $$__  $$                         
 \____  $$| $$ \ $$ \ $$| $$  | $$    | $$  \ $$                         
 /$$  \ $$| $$ | $$ | $$| $$  | $$ /$$| $$  | $$                         
|  $$$$$$/| $$ | $$ | $$| $$  |  $$$$/| $$  | $$                         
 \______/ |__/ |__/ |__/|__/   \___/  |__/  |__/                         
                                                                         
                                                                         
                                                                         
 /$$$$$$$                       /$$                                   /$$
| $$__  $$                     | $$                                  | $$
| $$  \ $$ /$$$$$$   /$$$$$$  /$$$$$$    /$$$$$$   /$$$$$$$  /$$$$$$ | $$
| $$$$$$$//$$__  $$ /$$__  $$|_  $$_/   /$$__  $$ /$$_____/ /$$__  $$| $$
| $$____/| $$  \__/| $$  \ $$  | $$    | $$  \ $$| $$      | $$  \ $$| $$
| $$     | $$      | $$  | $$  | $$ /$$| $$  | $$| $$      | $$  | $$| $$
| $$     | $$      |  $$$$$$/  |  $$$$/|  $$$$$$/|  $$$$$$$|  $$$$$$/| $$
|__/     |__/       \______/    \___/   \______/  \_______/ \______/ |__/

This block manage the communication with accuload by smith protocol

Description

This block ensure serialize and deserialize the smith queries for acculoads(flow computers)

Getting Started

Dependencies

  • .NET 4.7.2 Framework
  • .NET Dependency Injection >=9.0.0

Installing

  • Install Library with Package Manager script or on Nuget GUI.

Executing program

Serialize
SmithProtocolApi smithProtocolApi = new SmithProtocolApi();
Query sendQuery = new Query();
sendQuery.Address = 1;
sendQuery.Command = Command.RQ;
sendQuery.Text = string.Empty;
string serializedQuery = string.Empty;
Exception exception;
if(!smithProtocolApi.TrySerialize(sendQuery, out serializedQuery, out exception)){
    throw exception;
}
Deserialize
SmithProtocolApi smithProtocolApi = new SmithProtocolApi();
string query = "receivedQueryFromDevice";
Query deserializedQuery;
Exception exception;
if (!smithProtocolApi.TryDeserialize(query, out deserializedQuery, out exception)) {
    throw exception;
}
Console.WriteLine(deserializedQuery.Adress.ToString());
Console.WriteLine(deserializedQuery.Command.ToString());
Console.WriteLine(deserializedQuery.Text.ToString());

Authors

Ferdi Kurnaz Contact

Version History

  • 0.1
    • Initial Release

License

This project is licensed under the [MIT] License

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated

added dll commit xml