Platform

Inventory

19 views 0

The inventory stores devices and other assets relevant to your IoT solution. We refer to them as managed assets.

Managed assets can be “smart objects” such as smart electricity meters, home automation gateways and GPS devices. They can be assets you would like to monitor, such as rooms in which sensors are installed, or cars containing GPS devices.

The following JSON code shows an example of a managed asset in the inventory, in this case a gateway.

{
  "valid": true,
  "asset": {
    "id": "ef48966d-ebd6-4640-8e8a-b72e529bd8b9",
    "app_id": "161_3rg8j2ovzjggwkkoko4488k0o00ggcs44gwc0k4c4kksgg048o",
    "user_uid": "25b5edaf-4945-4982-b2da-59fe23a03714",
    "internal_asset_number": "VpWfEUvCALaLuRdwz4kZ73rlMAuc",
    "name": "Robo P3",
    "description": "Robo P3",
    "model": "gw1",
    "manufacter": "robofuse",
    "serial_number": "VpWfEUvCALaLuRdwz4kZ73rlMAuc",
    "category": {
      "id": "c8200c68-16a1-4b42-a657-f89d02e7740e",
      "app_id": "default",
      "name": "Environment",
      "description": "Environment",
      "created_at": "2019-02-18T16:31:20+00:00"
    },
    "specifications": [],
    "specifications_schema": [],
    "settings": {
      "device_settings": {
        "device_time_zone": "Europe.Bucharest",
        "sensors_reading_frq": 4,
        "log_freq": 60,
        "protocol": "mqtt"
      },
      "gateway": {
        "children": [
          "VpWfEUvCALaLuRdwz4kZ73rlMAuc01",
          "VpWfEUvCALaLuRdwz4kZ73rlMAuc02",
          "VpWfEUvCALaLuRdwz4kZ73rlMAuc03",
          "VpWfEUvCALaLuRdwz4kZ73rlMAuc04",
          "VpWfEUvCALaLuRdwz4kZ73rlMAuc05"
        ]
      }
    },
    "settings_schema": {
      "id": "http://jsonschema.net",
      "schema": "http://json-schema.org/draft-04/schema",
      "required": [],
      "title": "",
      "description": "",
      "type": "object",
      "mediaType": "application/schema+json",
      "properties": {
        "device_settings": {
          "id": "http://jsonschema.net/device_settings",
          "type": "object",
          "key": "device_settings",
          "name": "device_settings",
          "title": "",
          "description": "",
          "required": false,
          "properties": {
            "device_time_zone": {
              "id": "http://jsonschema.net/device_settings/device_time_zone",
              "type": "string",
              "key": "device_time_zone",
              "name": "device_time_zone",
              "title": "",
              "description": "",
              "required": false
            },
            "sensors_reading_frq": {
              "id": "http://jsonschema.net/device_settings/sensors_reading_frq",
              "type": "integer",
              "key": "sensors_reading_frq",
              "name": "sensors_reading_frq",
              "title": "",
              "description": "",
              "required": false
            },
            "log_freq": {
              "id": "http://jsonschema.net/device_settings/log_freq",
              "type": "integer",
              "key": "log_freq",
              "name": "log_freq",
              "title": "",
              "description": "",
              "required": false
            },
            "protocol": {
              "id": "http://jsonschema.net/device_settings/protocol",
              "type": "string",
              "key": "protocol",
              "name": "protocol",
              "title": "",
              "description": "",
              "required": false
            }
          }
        }
      }
    },
    "deleted": false,
    "created_at": "2021-10-20T11:24:14+00:00",
    "updated_at": "2021-10-20T13:09:40+00:00"
  }
}

In general, each managed asset consists of:

  • A unique identifier that references the object.
  • The name of the object.
  • A time stamp showing the last update.
  • Assets specific settings – as JSON.

Was this helpful?

By continuing to use the site, you agree to the use of cookies. More information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close