Testing Real-Time Digital Twins

Test real-time digital twins by deploying them on the workbench and then manually sending telemetry.

Workflow

  1. Deploy the model to the workbench.
    • Using your language of choice, add the definition of the real-time digital twin, the message type(s), and the message processor implementations to the workbench using a unique model name.

    • The model name is the unique identifier for the real-time digital twin model.

  2. Send a message.
    • Construct the message to send to a digital twin.

    • Using your language of choice, send a messages to the model using the workbench. Specify the model name and instance identifier.

Note

No digital twin instance was created manually. The workbench will automatically create new digital twin instances. Alternatively, users can create and add a digital twin instance to the workbench to test state changes as messages flow through.

  1. Introspect on the state of the twin.
    • Using the model name, retrieve the instances currently on the workbench.

    • Retrieve a specific instance using the instance’s identifier.