Getting Started - .NET
Overview
- Create a new project in Visual Studio
- Add the Tsl.AsciiProtocol.Std nuget package
- Set platform specific permissions (see below)
- Determine which option to use to connect to the readers
- Using the ASCII Transports API
- Using the Legacy reader connection manager
- Determine which option to use to communicate with the readers
- Using Reader Operations
- Using the ASCII Protocol
Create a Visual Studio Project of your choice and reference the Tsl.AsciiProtocol.Std nuget package. You need to add the nuget package to each project in your solution, the common .NET Standard code and the platform specific code projects. We currently support Win Forms, UWP, and WPF
Platform Specifics
UWP
You need to add USB and Bluetooth device capabilities to the appx manifest
Open the Package.appxmanifest using the View Code option to edit the raw XML and ensure the capabilities section contains the following:
<Capabilities>
<DeviceCapability Name="bluetooth.rfcomm" />
<DeviceCapability Name="serialcommunication">
<Device Id="any">
<Function Type="name:serialPort" />
</Device>
</DeviceCapability>
</Capabilities>
Windows Forms
There are no additional permissions to configure.
Windows Presentation Framework (WPF)
There are no additional permissions to configure.