# DeviceResult

class DeviceResult(val status: CommandStatus, val measurements: Map<ScanMode, IMeasurementData>? = null)

Class representing a device response after an asynchronous command.

## Constructors

DeviceResult
Link copied to clipboard
constructor(status: CommandStatus, measurements: Map<ScanMode, IMeasurementData>? = null)

## Properties

measurements
Link copied to clipboard
val measurements: Map<ScanMode, IMeasurementData>?

Map of measurement results, if applicable. Value is `null` if the command does not provide any measurement results, or if the operation was not successful.

status
Link copied to clipboard
val status: CommandStatus

Status code of the completed command. CommandStatus.SUCCESS for a successful operation