IamUtil.pairPasswordOpenAsync()

DESCRIPTION

Perform Password Open pairing asynchronously.

The specified AsyncIamResultReceiver closure is invoked with IamError.OK upon successful completion or with an error if an error occurs. See the pairPasswordOpen() function for details about possible error codes.

DECLARATION

    static public func pairPasswordOpenAsync(
            connection: Connection,
            desiredUsername: String,
            password: String,
            closure: @escaping AsyncIamResultReceiver) 

PARAMETERS

connection:
An established connection to the device this client should be paired with
desiredUsername:
Assign this username on the device if available (pairing fails with .USERNAME_EXISTS if not)
password:
the common (not user-specific) password to allow pairing using Password Open pairing
closure:
Invoked when the pairing attempt succeeds or fails.

ERRORS

Throws the following errors:

None.

RETURN VALUES

None.

EXAMPLES

None.