Bosch IoT Device Management - will be discontinued by mid 2024

Manage attributes via Bosch IoT Suite UI

Goal

Let us assume, you will later have multiple digital twins on various locations and a user app will need to display such details.

The easiest way to store such rather static type of information is by adding attributes.

In this tutorial you will enrich your hello-world-device-01 with attributes like manufacturer details.

{
"name": "ACME demo corp.",
"location": "Berlin",
"serialno": "42",
"model": "fancy"
}


Procedure

Navigate to the Bosch IoT Suite UI:

  1. Click the Things view.

  2. Select your thing.

  3. Click Attributes.

  4. Click the + icon, to add some attributes.

  5. Set the Name to manufacturer.

  6. In the JSON value field add the content from the snippet above.

  7. Confirm with OK.

images/confluence/download/attachments/1634788003/hello-world-attribute.png


The thing is updated respectively. In case you have an application listening on this thing it will be notified with a "change" event.

Result

Now the attributes are stored and can be used later for searching and filtering.

Once you have more things, you can use the respective attributes' entries as search arguments.

Note: The search is case sensitive.

Example 1: Find all things with manufacturer ACME demo corp.

images/confluence/download/attachments/1634788003/hello-world-search.png


eq(attributes/manufacturer/name,"ACME demo corp.")


Example 2: Find all things with serial number 42.

Things >Filter > Advanced > Query

eq(attributes/manufacturer/serialno,"42")