Emulator API

An introduction to our Emulator API, accessible through both DT Studio and REST API.

Overview

If you don't have access to physical sensors and want to test our services, the Sensor Emulator API gives you the ability to create and experiment with devices at will. An emulated sensor is designed to have all the features of a real sensor, making it a valuable tool for experimentation or debugging.

  • Explore DT Studio without the need for real sensors.

  • It can be interacted with through the REST API.

  • Emit any event type at will by simply clicking a button.

  • Generate events in your CI flow to automate integration tests.

You can find a list of all available emulator endpoints at our REST API Reference.

Prerequisites

  • Service Account Creating, deleting, and interacting with emulated devices require that your User or Service Account has been granted the role of Project Developer or higher.

Creating an Emulated Device

In DT Studio, navigate to the project in which you want to create the emulated sensor. In the left-most menu, locate the API Integrations -> Emulator page. Click Create Device.

Under the new device creation page, select a Device Type. A Device name and labels are optional but can be useful when managing several emulated devices at once.

Remember to Save New Emulated Device.

Emitting Emulated Events

Events can be emitted at will using an emulated device.

In DT Studio, navigate to the project containing your emulated sensors. In the left-most menu, locate the API Integrations -> Emulator page. Click on your emulated device.

Under the details page of your emulated device, select the Event Type and related value you wish to emit. When set, click Send Event for immediate effect.

Last updated