A data template in RubiThings defines a data packet format that you send from your IoT-enabled devices. RubiThings acquires (subscribes) the data if the incoming (published) data is in the form defined in the data template.
A data template specifies the following two attributes for the incoming data.

  • Property Name, which is the name of the quantity to be measured
  • Data Type of the Property

    Warning

    The format in which the data is retrieved from an IoT-enabled device should be identical to the assigned data template.

  • The Property Name and Data Type should be identical to that defined in the data template.
  • The Property Name is case-sensitive. Hence, the Property string coming from the IoT-enabled device and that in the defined string should be identical.
  • Example: A string named 'Temperature' and 'temperature' is considered two different properties (and not the same).
  • Example: A property 'Temperature' with data type 'Number' is not the same as a property 'Temperature' with data type 'String'.

In the above two cases, the published data and the data template format do not match. Hence, the data from the IoT-enabled device is discarded, and an error message is displayed.