Device
public struct Device: Codable
Representation of a device stored in ThinCloud.
-
Active state of the device.
Declaration
Swift
public let active: Bool?
-
ThinCloud generated device identifier.
Declaration
Swift
public let deviceId: String
-
The devicetype identifier of the device.
Declaration
Swift
public let devicetypeId: String
-
The physical identifier of the device, i.e. MAC address.
Declaration
Swift
public let physicalId: String
-
The GeoJSON represenation of the device’s location
Declaration
Swift
public let location: Location?
-
Key-value pairs of customer specified metadata.
Declaration
Swift
public let custom: [String: AnyCodable]?
-
Commissioning state of the device.
Declaration
Swift
public let commissioning: Bool?
-
Connectivity state of the device.
Declaration
Swift
public let isConnected: Bool?
-
Date the connectivity state was last updated at.
Declaration
Swift
public let connectivityUpdateAt: Date?
-
Session identifier of the connectivity state.
Declaration
Swift
public let connectivitySessionId: String?
-
Date the device was created.
Declaration
Swift
public let createdAt: Date?
-
Date the device was last updated.
Declaration
Swift
public let updatedAt: Date?