Bosch IoT Device Management

Update the demo device policy

This section describes how to update the demo device's policy, which is created automatically while provisioning the demo device.
The entry labeled DEVICE allows the Hub-to-Things-connection to read and write various resource paths.

In this example, we will restrict the access to the features resources, i.e. things:/features, and thus the changed attribute events will not be automatically forwarded to the device layer.

The adjustment is only necessary for the demo device, because it communicates via the Bosch IoT Hub HTTP adapter.
That results in very short "sessions", where the complete "handshake" that the device is assigned a software update and accepts it, can not be completed; and the next attempt cannot resume, but will start the process again.

Use the Bosch IoT Suite Console

  1. Open the Things view.

  2. Select the device, whose policy needs to be changed.

  3. Open the Policy section.

  4. Click the DEVICE entry to see the details.

  5. In case the resource path is thing:/ click the resource to further restrict it.

  6. Add features.

  7. Confirm with OK.

images/confluence/download/attachments/1669834925/demo-device-policy.png

As a consequence, the subject (which is the Hub-to-Things connection) is not authorized to read or write the attributes path, for this specific demo device. Thus, the changed attribute events will not be automatically forwarded to the device layer.