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.
static public func pairPasswordOpenAsync( connection: Connection, desiredUsername: String, password: String, closure: @escaping AsyncIamResultReceiver)
- An established connection to the device this client should be paired with
- Assign this username on the device if available (pairing fails with .USERNAME_EXISTS if not)
- the common (not user-specific) password to allow pairing using Password Open pairing
- Invoked when the pairing attempt succeeds or fails.