SDK reference / Models

Models.Iot namespace

Types

TypeKindDescription
DeviceclassA 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/...`.
DeviceCommandclassA command queued on `dev/{deviceId}/down/commands/{name}`.
DeviceCommandStateenumThe state of a downlink command.
DeviceRegistryclassA device registry: the tenant boundary of an MQTT namespace (W60; ADR-0810). Devices connect with mutual TLS only; the certificateCN `{registryUid}:{deviceId}` is the MQTT username, and pattern ACLs (`dev/%u/up/#` write, `dev/%u/down/#` read) isolate tenants.Prototype: built only with a paying design partner (ADR-0810).
DeviceRegistryStateenumDevice registry lifecycle states (W60; ADR-0810 section 3, ADR-0105).
DeviceRegistry_annotationsclassAt most 256 KiB in all; never policy input.
DeviceRegistry_labelsclassAt most 64.
DeviceRegistry_refusedByReasonCodeclassMessages refused, counted by the MQTT 5 reason code they got (`149` 0x95 payload too large, `150` 0x96 rate too high, `151` 0x97 quota exceeded, `135` 0x87 not authorized).
DeviceRouteclassA route: messages whose topic (after `dev/{deviceId}/`) matches `topicFilter` are delivered to the target (W60; ADR-0810 section 3).
DeviceRouteStateenumRoute lifecycle states.
DeviceRoute_annotationsclassAt most 256 KiB in all; never policy input.
DeviceRoute_labelsclassAt most 64.
DeviceStateenumDevice lifecycle states.
DeviceTelemetryMessageclassOne message the platform accepted from a device.
Device_annotationsclassAt most 256 KiB in all; never policy input.
Device_desiredConfigclassThe configuration the platform wants the device to run: string keys and values, at most 8 KiB in all. Change it with `:setDesiredConfig`.
Device_labelsclassAt most 64.
Device_reportedConfigclassThe configuration the device last reported (`:reportConfig`).
EnrollmentGroupclassAn enrolment group: the certificate authority whose claim certificates may enrol devices into the registry (W60; ADR-0810 section 3).A device that presents a claim certificate chained to the group's CA, and a certificate request, buys an operational certificate.
EnrollmentGroupStateenumEnrolment group lifecycle states.
EnrollmentGroup_annotationsclassAt most 256 KiB in all; never policy input.
EnrollmentGroup_labelsclassAt most 64.
ProvisionDeviceRequestclassRequest to enrol a device with a claim certificate (W60; ADR-0810 section 3).
ReportConfigRequestclassRequest to report a device's configuration (what the device runs).
ReportConfigRequest_configclassThe configuration the device runs (string keys and values, at most 8 KiB in all). It replaces the last report.
RouteTargetKindenumWhere a route delivers (ADR-0810 section 3: queue, webhook, PostgreSQL table, bucket or metrics).
SendDeviceCommandRequestclassRequest to send a command to a device.
SetDesiredConfigRequestclassRequest to set a device's desired configuration.
SetDesiredConfigRequest_configclassThe new desired configuration (string keys and values, at most 8 KiB in all). It replaces the old one.