Hi Team, We have bought ZQ 310 printer for integrating it with iPad app. Our app needs to connect to printer via BLE. Our ap...

L Liji Linto 3 years 7 months ago
26 1 0

Hi Team,

We have bought ZQ 310 printer for integrating it with iPad app. Our app needs to connect to printer via BLE. Our app uses Swift language whereas the LinkOS SDK for iOS application provides sample code only in objective C. I request you to please provide sample code in Swift language as the completion of this SDK integration is on high priority.Requesting you to please help as soon as possible.

Please Register or Login to post a reply

1 Replies

Y Yanis Dalabiras

The current Link-OS SDK for iOS (Objective-C) only supports Bluetooth Classic (SPP). It doesn't support BLE. To use Link-OS SDK for iOS library (Objective-C) in Swift, you only need to create a Bridging Header. Please refer to "iOS / Swift, the SDK, and ZPL" on how to create a bridging header for Link-OS SDK for iOS.

If you want to use BLE, you can refer to this sample code - ZebraPrinterBLEDemo on GitHub. Though this sample code is written in Objective-C, it should provide Swift developers the enssential elements for connecting to Zebra printers over BLE. Hope this helps.

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