Reputation: 59
We are using DiscoveredPrinterBluetooth
to keep discovered printer, ZebraPrinterConnection
and ZebraPrinter
to send data to printer. Everything is working ok on older android versions, but on let say 4.0 is not working, finds printer but keeps showing insert pin screen. Get error in log:
V/BluetoothSocket.cpp(5371): ...connect(96, RFCOMM) = 111 (errno 111)
As I see there is problem with newer versions, looking at Bluetooth pairing without user confirmation but I don't know how to solve it in my case? Any ideas? Thanks
Upvotes: 1
Views: 709
Reputation: 6473
The 2.0 version of the Zebra SDK has an implementation of insecure bluetooth connections.
Check out BluetoothConnectionInsecure
in the new SDK. This could be used instead of BluetoothConnection
if you want insecure BT connections...
Upvotes: 2