Device Type Object

Describes the JSON object of a Device Type.

A Device Type in Ubidots can store parameters that can be applied to a new Device upon creation.

PropertyTypeDescription
idStringId of Device Type
labelStringLabel of Device Type
nameStringName of Device Type
createdAtStringDate Device Type was created
descriptionStringDescription of Device Type
deviceColorStringHTML Color of Device Type
deviceIconStringDevice Type Icon
variableColorStringHTML Color of Variables
syntheticVariableColorStringHTML Color of Synthetic Variables
variablesString ArrayList of Variable Ids that belong to the Device Type
propertiesArrayArray of Device properties
tasksArrayTasks of Device Type
urlStringUrl of Device Type

Device type

{
    "url": "https://industrial.api.ubidots.com/api/v2.0/device_types/5e1f7e5789f9bd7c4e7f1e2c",
    "id": "5e1f7e5789f9bd7c4e7f1e2c",
    "name": "Type name",
    "label": "type-label",
    "description": "La description aquella",
    "deviceColor": "#3BA9F5",
    "deviceIcon": "pencil",
    "variableColor": "#FFAE58",
    "syntheticVariableColor": "#",
    "variables": [],
    "properties": [
      {
        "key": "p1",
        "text": "P1",
        "type": "text",
        "value": "Text as test",
        "description": "Description 1"
      },
      {
        "key": "p2",
        "text": "P2",
        "type": "number",
        "value": 10.0,
        "description": "Description 2"
      },
      {
        "key": "p3",
        "text": "P3",
        "type": "list",
        "value": "",
        "choices": [
          "t1",
          "t2"
        ],
        "options": [
          {
            "text": "t1",
            "value": "t1"
          },
          {
            "text": "t2",
            "value": "t2"
          }
        ],
        "description": "Description 3"
      },
      {
        "key": "p4",
        "text": "P4",
        "type": "date",
        "value": null,
        "description": "Description 4"
      },
      {
        "key": "p5",
        "text": "P5",
        "type": "boolean",
        "value": true,
        "description": "Description 5"
      },
      {
        "key": "p6",
        "text": "P6",
        "type": "json",
        "value": {},
        "description": "Description 6"
      }
    ],
    "tasks": [],
    "createdAt": "2020-01-15T21:04:23.602975Z"
}