Perform Local Open pairing asynchronously, requesting the specified username.
The specified AsyncIamResultReceiver closure is invoked with IamError.OK upon successful completion or with an
error if an error occurs. See the
pairLocalOpen() function for details about possible error codes.
static public func pairLocalOpenAsync( connection: Connection, desiredUsername: 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)
- Invoked when the pairing attempt succeeds or fails.