CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
πŸŒ™β˜€οΈ
Log inStart free
Home/Templates/IoT

πŸ“‘ IoT Β· Sequence

IoT Device Provisioning Sequence

How a new device joins the platform securely: claiming by the owner, certificate issue and its first connection to the MQTT broker.

More IoT templates

Opening a template is free and never counts toward your daily diagrams. Asking the AI to change it counts as one.

Drawing diagram…

What this diagram shows

  • Owner claims the device with a code printed on it
  • Device gets its own X.509 certificate
  • Broker only accepts connections with a valid certificate

Prompt used

Sequence for provisioning a new IoT device: the owner scans the claim code in the mobile app, the provisioning service links the device to the owner's account in the device registry. When the device first boots it sends a certificate signing request, gets an X.509 certificate from the certificate authority, connects to the MQTT broker with mutual TLS and publishes its first status message.

Mermaid code
sequenceDiagram
  actor Owner
  participant App as Mobile App
  participant Prov as Provisioning Service
  participant Reg as Device Registry
  participant CA as Certificate Authority
  participant D as Device
  participant MQ as MQTT Broker
  Owner->>App: Scan claim code
  App->>Prov: Claim device
  Prov->>Reg: Link device to account
  Reg-->>Prov: Linked
  D->>Prov: First boot, send CSR
  Prov->>CA: Sign certificate
  CA-->>Prov: X.509 certificate
  Prov-->>D: Certificate and broker URL
  D->>MQ: Connect with mutual TLS
  MQ-->>D: Connected
  D->>MQ: Publish status: online

Inside this diagram

A sequence diagram with 7 participants and 11 messages, in the order they happen.

People

  • Owner

Systems

  • Mobile App
  • Provisioning Service
  • Device Registry
  • Certificate Authority
  • Device
  • MQTT Broker

Steps in order

  • 1. Owner β†’ Mobile App: Scan claim code
  • 2. Mobile App β†’ Provisioning Service: Claim device
  • 3. Provisioning Service β†’ Device Registry: Link device to account
  • 4. Device Registry β†’ Provisioning Service: Linked (reply)
  • 5. Device β†’ Provisioning Service: First boot, send CSR
  • 6. Provisioning Service β†’ Certificate Authority: Sign certificate
  • 7. Certificate Authority β†’ Provisioning Service: X.509 certificate (reply)
  • 8. Provisioning Service β†’ Device: Certificate and broker URL (reply)
  • 9. Device β†’ MQTT Broker: Connect with mutual TLS
  • 10. MQTT Broker β†’ Device: Connected (reply)
  • 11. Device β†’ MQTT Broker: Publish status: online

Make your own diagram like this

Describe your own system in plain English and the AI sequence diagram generator draws it in seconds, in the same style as this template.

Related templates

Data FlowIoT

IoT Telemetry Data Pipeline

How sensor readings travel from devices to dashboards and alerts: MQTT ingestion, stream processing, time-series storage and anomaly detection.

C4 ArchitectureProIoT

IoT Platform Reference Architecture

A general-purpose IoT platform: device connectivity, device management, data processing, rules and the apps built on top.

DeploymentProIoT

IoT Edge Computing Deployment

Where processing happens in an edge IoT setup: devices, an on-site edge server running containers, and the cloud for fleet management and long-term storage.

FlowchartIoT

Smart Home Automation Flow

How a smart home reacts to events: motion, door and temperature triggers run rules for lights, locks, AC and alerts.

SequenceIoT

MQTT Publish/Subscribe Messaging

How MQTT messaging works between devices, a broker and applications: connect, subscribe, publish with QoS, retained messages and last will.

State MachineIoT

IoT Device Lifecycle

Every state an IoT device goes through, from manufacture to decommissioning, including updates, faults and replacement.