Hi, I'm trying to connect my iOS app to a Zebra ZQ510 printer over CoreBluetooth, but not having much luck locating the printer. Looking at the sample code from https://github.com/ZebraDevs/LinkOS-iOS-Samples/tree/ZebraPrinterBLEDemo, I call scanForPeripherals( ) to locate the printer:
central.scanForPeripherals(withServices: services, options: [
CBCentralManagerScanOptionAllowDuplicatesKey : false
The callbacks for centralManager(_, didDiscover:, advertisementData:, rssi:) all differ depending on what I pass in for services in the call above, but none of them let me get to the Zebra printer.
If I set services to nil, I get a number of nameless peripherals with no way to determine which one is the printer without connecting to each peripheral individually.
If I set services like so:
let services = [CBUUID(string: ZPRINTER_SERV_ID_FOR_CONNECTION)]
I do not get a response.
I'm not sure what else I'm missing to try to find my printer. Can someone please point me in the right direction? Thanks in advance.