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
Open the Things view.
Select the device, whose policy needs to be changed.
Open the Policy section.
Click the DEVICE entry to see the details.
In case the resource path is thing:/ click the resource to further restrict it.
Confirm with OK.
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.