IamUtil.getDeviceDetailsAsync()

DESCRIPTION

Asynchronously retrieve device information that typically does not need a paired user.

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

DECLARATION

    static public func getDeviceDetailsAsync(connection: Connection,
                                             closure: @escaping (IamError, DeviceDetails?) -> ()) 

PARAMETERS

connection:
An established connection to the device
closure:
Invoked when the device information is successfully retrieved or retrieval fails.