Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feature/erasure' into feature/er…
…asure
- Loading branch information
Showing
175 changed files
with
5,233 additions
and
909 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
documentation/src/main/resources/_posts/2018-10-16-example-mqtt-bidirectional.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
title: "Example demonstrating connectivity to an MQTT broker" | ||
published: true | ||
permalink: 2018-10-16-example-mqtt-bidirectional.html | ||
layout: post | ||
author: thomas_jaeckle | ||
tags: [blog] | ||
hide_sidebar: true | ||
sidebar: false | ||
toc: false | ||
--- | ||
|
||
Eclipse Ditto can now connect to MQTT 3.1.1 brokers. | ||
|
||
Perfect timing to happily welcome a new colleague to our team behind Eclipse Ditto: [David](https://github.com/joosdavid). | ||
|
||
In order to get familiar with Ditto and the development with digital twins, David was assigned with one of his first | ||
tasks to get his hands on one of our newest features, [MQTT connectivity](connectivity-protocol-bindings-mqtt.html) | ||
which was released recently with milestone [0.8.0-M2](2018-09-27-milestone-announcement-080-M2.html). | ||
|
||
On his journey into digital twin land he made a great example with an ESP8266 powered board connected via an MQTT broker | ||
to Ditto and published it to the | ||
[Eclipse Ditto examples repository](https://github.com/eclipse/ditto-examples/tree/master/mqtt-bidirectional): | ||
|
||
> This example is about how to communicate between device and solution in a two way pattern through Ditto using MQTT. | ||
This means we will add a policy, a thing and a MQTT connection to Ditto. | ||
When Ditto ist set up and working, we will create real world device ("octopus board") and connect it to it's | ||
digital twin via MQTT. | ||
<br/><br/> | ||
At the end, we will create a basic frontend webapp. | ||
The webapp will automatically connect to Ditto when you type in your credentials, automatically pull your things | ||
and show them in a list. | ||
<br/> | ||
You can create, modify and delete devices in the webapp and if there is a real world device connected to the thing | ||
in the list, you can send it a command message to control any feature on it. | ||
The list of things will always be up-to-date when you listen to server-sent-events, which you can activate easily | ||
with pressing a button. | ||
|
||
{% include external_image.html | ||
href="https://raw.githubusercontent.com/eclipse/ditto-examples/master/mqtt-bidirectional/img/diagram.jpg" | ||
alt="Eclipse Ditto bidirectional MQTT diagram" | ||
max-width=800 | ||
caption="Source: https://github.com/eclipse/ditto-examples" %} | ||
|
||
> We will use an Octopus-board with an ESP8266 on it. It has several sensors built in, but for simplicity we will | ||
just use it's temperature and altitude sensor. | ||
<br/> | ||
To show the functionality of Eclipse Ditto messages, we will switch on/off a LED on the Octopus-board through it. | ||
|
||
|
||
If you have any wishes, improvements, are missing something | ||
or just want to get in touch with us, you can use one of | ||
our [feedback channels](https://eclipse.org/ditto/feedback.html). | ||
|
||
|
||
{% include image.html file="ditto.svg" alt="Ditto" max-width=500 %} | ||
--<br/> | ||
The Eclipse Ditto team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.