DeviceCommand
public struct DeviceCommand: Codable
A command dispatched to a device.
-
The state of a
See moreDeviceCommand.Declaration
Swift
public enum State: String, Codable -
ThinCloud generated device identifier.
Declaration
Swift
public let deviceId: String -
ThinCloud generated command identifier.
Declaration
Swift
public let commandId: String -
The device’s name.
Declaration
Swift
public let name: String -
ThinCloud generated user identifier.
Declaration
Swift
public let userId: String -
Key-value pairs of customer specified incoming request data.
Declaration
Swift
public let request: [String: AnyCodable]? -
Key-value pairs of customer specified outgoing response data.
Declaration
Swift
public var response: [String: AnyCodable]? -
The state of the device command.
Declaration
Swift
public var state: State -
Date the command was created.
Declaration
Swift
public let createdAt: Date? -
Date the command was last updated.
Declaration
Swift
public let updatedAt: Date?
DeviceCommand Structure Reference