SDK reference / Models / Iot
Device
Kind: class
Namespace: Egulu.Sdk.Models.Iot
A device: its identity, its desired and reported configuration (each under its own ETag), its operational certificate and itscounters (W60; ADR-0810 section 3). Telemetry arrives on dev/{deviceId}/up/...; commands leave on dev/{deviceId}/down/....
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Annotations | Models.Iot.Device_annotations? | annotations | At most 256 KiB in all; never policy input. |
CertificateNotAfter | DateTimeOffset? | certificateNotAfter | When the operational certificate expires (UTC). |
CertificatePem | string? | certificatePem | The operational certificate, a PEM certificate (public). |
CertificateSerial | string? | certificateSerial | Serial of the device's current operational certificate (hex), when it holds one. |
Connected | bool? | connected | True while the device holds an MQTT session. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
DeleteTime | DateTimeOffset? | deleteTime | The deleteTime property |
Description | string? | description | Human-readable description. |
DesiredConfig | Models.Iot.Device_desiredConfig? | desiredConfig | The configuration the platform wants the device to run: string keys and values, at most 8 KiB in all. Change it with `:setDesiredConfig`. |
DesiredEtag | string? | desiredEtag | "{version}" of the desired configuration; send it back in If-Match to `:setDesiredConfig`. |
DisplayName | string? | displayName | Up to 63 characters. |
EnrollmentGroup | string? | enrollmentGroup | The enrolment group the device was enrolled through, if any (`projects/{p}/locations/{l}/deviceRegistries/{r}/enrollmentGroups/{g}`). |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
Labels | Models.Iot.Device_labels? | labels | At most 64. |
LastSeenTime | DateTimeOffset? | lastSeenTime | When the platform last accepted a message from the device (UTC). |
MessageCount | long? | messageCount | Messages accepted from the device. |
MeteredUnits | long? | meteredUnits | 4 KB metering units billed for the device. |
MqttUsername | string? | mqttUsername | The MQTT username: the certificate CN `{registryUid}:{deviceId}`. |
Name | string? | name | The resource name, for example projects/p/locations/l/instances/i. |
PendingCommands | int? | pendingCommands | Commands queued for the device and not yet delivered. |
PurgeTime | DateTimeOffset? | purgeTime | The purgeTime property |
Reconciling | bool? | reconciling | True while the platform works toward the spec. |
Registry | string? | registry | The registry's resource name. |
ReportedConfig | Models.Iot.Device_reportedConfig? | reportedConfig | The configuration the device last reported (`:reportConfig`). |
ReportedEtag | string? | reportedEtag | "{version}" of the reported configuration; send it back in If-Match to `:reportConfig`. |
State | Models.Iot.DeviceState? | state | Device lifecycle states. |
Uid | string? | uid | UUIDv7, never reused. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |