Device Emulator

Device Emulator

The device emulator is a powerful tool for developers to send data as if it was sent by a real device. The emulator is intuitive and requires just a few clicks to validate and send your data package.

To access the device emulator, go to the Device section, select the device, and then click on the Emulator tab. 


TagoIO accepts two types of payloads: JSON or Raw.

  • JSON: The payload is a JSON that follows TagoIO's data schema by using the following fields: variable, value, unit, time, serie, location and metadata.
  • Raw: The payload is a simple text data (CSV, XML, or even binary). To parse it, you will need to add a Payload Parser.


Sending Payload Data

To send a JSON payload from the emulator, you will need to:

  1. Build a data payload that should contain at least the variable field (pick one example from the list);
  2. Edit the fields of the payload;
  3. Click onto send the payload.


Functions

Functions are helper variables that you can add to your payload. Each function has a purpose. To add a function to your payload, click on the button and select a function.

To learn more about using functions in the device emulator, read the article Device Emulator Functions.


Timer

The timer helps to automatically send your payload at a fixed time interval. This is extremely useful if you wish to see the data coming in while you look at a dashboard, for example.

If you close the 'Emulator' tab, the system will stop sending payloads. You may want to use the Simulator or create a script to keep sending all the time.


Note: Before sending any kind of payload, always make sure that the device is Active.

Learn more in our community


    • Related Articles

    • Using the Device Emulator

      If you want a quick way to send data to your applications, but you don't have your hardware device available at the moment, or you simply need to send data to debug your applications, you can do that very easily using the Device Emulator. To access ...
    • Device Emulator Functions

      Functions are helper variables that you can add into your payload when using the Device Emulator, and each function has a purpose. To add a function into your payload, click on thebutton and select a function. You can use functions both in ...
    • Device Token

      The secret key used between TagoIO and your device is called a Device Token. Any access from a device will only be granted with a valid token. This token should be kept in secret and only be shared with those you trust. Each time a device is created, ...
    • Device List Widget

      The Device List widget is a table that dynamically populates with information about your devices, such as names, tags, configuration parameters, and IDs. It can't access devices' data, however. 1. Editing the device list It works as a dynamic table, ...
    • Sending Data to Device

      TagoIO supports two-way communication with all your devices so that it can send and receive data. There are some options for you to send data from your application to the device. Among the methods, you can use: Publish to MQTT Post data to a ...