Xamarin LinkOS Bluetooth connection not closed

// Expert user has replied.
Y Yi Yang Ang 2 years 11 months ago
2 1 0

Hi, I am using LinkOS SDK on Xamarin by following this tutorial:
Basic Xamarin Print Example
The printing is working, but the bluetooth connection is not closed after printing. As a result, another phone cannot connect to the printer until I manually turn off bluetooth on Android or iOS.
 
I did call the connection.close() method:
finally{     if (connection.IsConnected)          connection.Close();}
 
How should I close it?

Please register or login to post a reply

1 Replies

M Manuel Caicedo-Rivera

Hi Yi Yang,

Please, download the newer version of the Multiplatform SDK from the link below, and follow the new sample code for Xamarin. The new sample code closes the connection correctly.

Link-OS Multiplatform SDK | Zebra

You will find this into the following folder

C:\Program Files\Zebra Technologies\link_os_sdk\xamarin\v1.1.75\demos\src

Thanks,

MC

CONTACT
Can’t find what you’re looking for?