IamUtil.pairLocalInitialAsync()

DESCRIPTION

Perform Local Initial pairing asynchronously.

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

DECLARATION

    static public func pairLocalInitialAsync(connection: Connection, closure: @escaping AsyncIamResultReceiver) 

PARAMETERS

connection:
An established connection to the device this client should be paired with
closure:
Invoked when the connect attempt succeeds or fails.