Describes the JSON object of a Device.
A Device in Ubidots can store one or more Variables. Devices can have an exact location and a predefined type.
Property | Type | Description |
---|---|---|
id | String | Id of Device |
label | String | Label of Device |
name | String | Name of Device |
createdAt | String | Date Device was created |
description | String | Description of Device |
isActive | Boolean | True if Device is active |
lastActivity | Number | Date of of Device's last activity |
organization | Organization Model | Organization the Device belongs to. |
location | Object | GPS position as set in Device properties. This is a read-only field; to set a position, send the |
tags | String Array | Tags of Device |
url | String | URL of Device |
variables | String | Variables URL of Device |
variablesCount | Integer | Number of Variables in the Device |
properties | Object | Properties of Device, including support for:
|
{
"properties": {
"_color": "#EA6F4C",
"_icon": "cloud-sun",
"_location_fixed": {
"lat": 6.2486,
"lng": 75.5742
}
},
"createdAt": "2019-11-25T19:35:08.975270Z",
"description": "some description",
"id": "6e309da44fc8455a9cceb5aa",
"isActive": true,
"label": "first-device",
"lastActivity": null,
"name": "First Device",
"organization": {
"id": "af92e4c82bf1d39cc21882f5b",
"label": "my-first-customer",
"name": "My First Customer",
"url": "http://industrial.ubidots.com/api/v2.0/organizations/af92e4c82bf1d39cc21882f5b"
},
"tags": ["first"],
"url": "http://industrial.ubidots.com/api/v2.0/devices/6e309da44fc8455a9cceb5aa",
"variables": "http://industrial.ubidots.com/api/v2.0/devices/6e309da44fc8455a9cceb5aa/variables",
"variablesNumber": 1
}