Skip to content

Error connecting with paired device in iOS #462

@EreborKing

Description

@EreborKing

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions