DatalogicComHelper 1.0.0
See the version list below for details.
dotnet add package DatalogicComHelper --version 1.0.0
NuGet\Install-Package DatalogicComHelper -Version 1.0.0
<PackageReference Include="DatalogicComHelper" Version="1.0.0" />
paket add DatalogicComHelper --version 1.0.0
#r "nuget: DatalogicComHelper, 1.0.0"
// Install DatalogicComHelper as a Cake Addin #addin nuget:?package=DatalogicComHelper&version=1.0.0 // Install DatalogicComHelper as a Cake Tool #tool nuget:?package=DatalogicComHelper&version=1.0.0
DatalogicComHelper
DatalogicComHelper
is a C# library designed to assist in communicating with Datalogic devices. The library provides simple methods to start the phase mode and one-shot mode of the devices both synchronously and asynchronously.
Installation
Via NuGet:
You can install the library via NuGet package manager by searching for DatalogicComHelper
or using the following command:
Install-Package DatalogicComHelper
Usage
Initialize the Service
using DatalogicComHelper;
var service = new DatalogicService();
Start Phase Mode
Asynchronously:
string response = await service.StartPhaseModeAsync("192.168.1.100", 51236);
Synchronously:
string response = service.StartPhaseMode("192.168.1.100", 51236);
Start One-Shot Mode
Asynchronously:
string response = await service.StartOneShotModeAsync("192.168.1.100", 51236);
Synchronously:
string response = service.StartOneShotMode("192.168.1.100", 51236);
Error Handling
It's recommended to surround the method calls with try-catch blocks to handle any potential errors, especially when dealing with network operations:
try
{
string response = service.StartOneShotMode("192.168.1.100", 51236);
Console.WriteLine(response);
}
catch(Exception ex)
{
Console.WriteLine($"Error: {ex.Message}");
}
Contributions
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
License
Distributed under the MIT License. See LICENSE
for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release of Datalogic Communication Helper library.