This offer is only addressed to commercial customers including freelancers and entrepreneurs. All prices are exclusive of value added tax (VAT).
  • Share via email
  • Subscribe to blog alert

Bosch IoT Things – service update with new features

The new release of Bosch IoT Things – the digital twin layer of Bosch IoT Device Management, introduces new features.

Restrict creation of new policy/thing entities

With the latest release, Bosch IoT Things supports you to restrict permissions to create things and policies specifically for each namespace.

tip A namespace policy is optional and by default not present. A namespace without a policy means that every authenticated subject allowed to use the API in the scope of your solution is also allowed to create things and policies in that namespace.

However, in case you need to define creation restrictions, you can define a policy, potentially containing several policy entries which contain:

  • Subjects: Defines who is allowed to create things or policies in the corresponding namespace. This may be for example a Suite OAuth2 client, a user who is allowed to manage the subscription, or a role like an Owner, Manager, Developer.
  • Resources: Can be thing:/ and/or policy:/ No deeper levels of these resources can be referenced here, only the root level is supported.
  • Permission: You can grant or revoke the CREATE permission. No other permissions are currently supported for namespace policies. As common in policies, a “revoke” is stronger than a “grant” on the same level, which is relevant if your authentication mechanism leads to a user having several authorized subjects.

Examples

Find two example entries in the namespace policy.

Namespace management

The namespace policy can be managed either by the HTTP API or via the Suite UI.

  • APIdocs: Navigate to HTTP API Solutions/solutions/{solutionId}/namespaces/{namespaceId}/policy
  • Suite UI: select Namespaces from the left navigation bar

Enrichment of extra fields now supports placeholders

Connections, WebSockets as well as SSE support to configure enrichment of events via extraFields.

This existing mechanism has been enhanced to use two different placeholders instead of knowing the feature IDs in the configuration upfront:

  • features/* Using the asterisk/wildcard symbol * in place of the feature ID you can express to enrich data of all existing features of a thing.
  • features/{{ feature:id }} Using the placeholder syntax {{ feature:id }} in place of the feature ID you can express to enrich data for only the affected features of the change event. The placeholder syntax additionally supports applying placeholder functions, for example:
    • exclude specific feature IDs from being enriched: features/{{ feature:id | fn:filter('ne','ConnectionStatus') }}
    • include only specific feature IDs matching a pattern: features/{{ feature:id | fn:filter('like','*Updatabale|important*') }}

Example

Your application can configure to always include the feature “definition” of all affected modified features using the following extraFields. Or, even more advanced, select both definition and potentially existing “desiredProperties” of all affected features:

  • extraFields=features/{{ feature:id }}/definition
  • extraFields=features/{{ feature:id }}/definition,features/{{ feature:id }}/desiredProperties

Or, using the asterisk/wildcard symbol, your application may always additionally receive all “desired properties” along with each event:

  • extraFields=features/*/desiredProperties

The extended enrichment is supported for all “change”-commands (i.e. “modify thing”, “modify feature”, “modify feature properties”, “delete feature” “merge thing”, etc.).

tip To omit a new source of failure or misunderstanding, the string for the feature ID can not contain the * character, as it now has the wildcard semantic, and cannot be the placeholder itself {{ feature:id }}.

Eclipse Ditto version 2.4 has been released

Bosch IoT Things is based on and powered by the open-source project Eclipse Ditto. Its latest version is 2.4.0. Read the full Ditto release notes at https://www.eclipse.org/ditto/release_notes_240.html.

On this occasion, various minor bugs have also been fixed.