Protocol - examples
Twin communication pattern
The typical communication pattern when interacting with the Bosch IoT
Things service using the Ditto protocol is composed of multiple
Therefore, each part has a
correlation-id header which can be used to
-  A command is sent to the Bosch IoT Things service which is then processed.
-  The response given to the issuer of the command would be either a success response or an error response.\ Any response contains a “status” and an “error” field which identify the error that occurred.
-  In addition an event is triggered.\ The event describes that the change was applied to the thing.\ Interested parties can subscribe for such events and follow the evolving thing.
A schematic view for the communication flow:
Events caused by commands from a connection are not published to the same origin. The connection can receive a response, but will not additionally get an event.
Examples at Eclipse ditto
Find the Eclipse Ditto examples online https://www.eclipse.org/ditto/protocol-examples.html
They are structured as follows:
All protocol examples are prepared for the
In case you need to communicate to the device simply replace it with