-
-
Notifications
You must be signed in to change notification settings - Fork 224
Description
When trying to connect with a paired device on iOS, always throws exception.
With the async method, throws the follwing exception:
await client.ConnectAsync(device.DeviceAddress, BluetoothService.SerialPort);
"Could not initialize an instance of the type 'ExternalAccessory.EASession': the native 'initWithAccessory:forProtocol:' method returned nil.\nIt is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false."`
With the sync method, throws the follwing exception:
BluetoothEndPoint bluetoothEnd = new BluetoothEndPoint(device.DeviceAddress, BluetoothService.DirectPrinting);
client.Connect(bluetoothEnd)
System.NullReferenceException: Object reference not set to an instance of an object.
I'm trying to connect with a Bluetooth printer.