The JSON object of a device
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 _location_fixed object in the properties body parameter. |
tags | String Array | Tags of device |
URL | String | URL of the device |
variables | String | Variables URL of Device |
variablesCount | Integer | Number of Variables in the Device |
properties | Object | Properties of Device, including support for: - _color: Device color in #rrggbb hexadecimal format. - _icon: Font Awesome name of device icon. |
JSON
{
“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”: “https://cs.api.ubidots.com/api/v2.0/organizations/af92e4c82bf1d39cc21882f5b”
},
“tags”: [“first”],
“url”: “https://cs.api.ubidots.com/api/v2.0/devices/6e309da44fc8455a9cceb5aa”,
“variables”: “https://cs.api.ubidots.com/api/v2.0/devices/6e309da44fc8455a9cceb5aa/variables”,
“variablesNumber”: 1
}