Kotlin: IamUtil.awaitGetDeviceDetails()

DESCRIPTION

Retrieve device information that typically does not need a paired user.

This function is meant to be used in a Kotlin coroutine to suspend execution until the operation has completed.

DECLARATION

suspend fun IamUtil.awaitGetDeviceDetails(
    connection: Connection,
): DeviceDetails 

PARAMETERS

connection:
An established connection to the device

THROWS EXCEPTIONS

BLOCKED_BY_DEVICE_CONFIGURATION:
if the device configuration does not allow retrieving this list (the IAM:GetPairing action is not set for the Unpaired role)
IAM_NOT_SUPPORTED:
if Nabto Edge IAM is not supported by the device