---
title: deviceID
framework: energykit
role: symbol
role_heading: Instance Property
path: energykit/electrichvacloadevent/deviceid
---

# deviceID

The device’s unique stable identifier.

## Declaration

```swift
let deviceID: String
```

## Discussion

Discussion The max length is 64 UTF-8 bytes. UUID strings are permitted. The following are enforced as preconditions: Isn’t empty, and less than or equal to 64 UTF-8 bytes. Uses only alphanumeric, space, hyphen, and apostrophe characters. Starts and ends with an alphanumeric character.

## See Also

### Getting device information

- [deviceName](energykit/electrichvacloadevent/devicename.md)
