Bluetooth Pairing
When using the IAsciiTransportsManager events are raised as new IAsciiTransport become avilable to connect to. This can be used to simplify the process to connect to a TSL reader
For the IAsciiTransportEnumerator that uses Usb this is as the device is connected or disconnected.
For the Bluetooth this is as devices are paired on unpaired.
The TSL readers have a NFC section to the label which by default holds a NFC Bluetooth pairing NDEF record. When a NFC reader on the host is used to scan the NFC label on the TSL reader this initiates a notification on the host to pair to the reader. If this pairing is accepted a new Bluetooth pairing is created which generates a connection available event on the transport manager.
The TSL readers also have the Bluetooth MAC address as part of the content of the 2D barcode.
This is in the form MAC:00:11:22:33:44:55
so in a similar way a host with a barcode engine can
scan the 2D barcode of the TSL reader and obtain a target MAC address to connect to.
The Bluetooth MAC of existing IAsciiTransport can
be found in the DisplayInfoLine property
or a new connection can be created using PairAsync(BluetoothAddress)
of the BluetoothSecurity