MQTT or Mosquitto – is a machine-to-machine (M2M)/”Internet of Things” connectivity protocol

IOTA – The first open-source distributed ledger that is being built to power the future of the Internet of Things with feeless microtransactions and data integrity for machines

Tangle – IOTA’s distributed ledger, by contrast, does not consist of transactions grouped into blocks and stored in sequential chains, but as a stream of individual transactions entangled together

MAM (Masked Authenticated Messaging) – is a second layer data communication protocol which adds functionality to emit and access an encrypted data stream, like RSS, over the Tangle (IOTA’s distributed ledger) regardless of the size or cost of device

The awesomeness of mqtt via MAM

Now let’s see what this is made of:

So here is the Bosch XDK pushing the (I call it fakeJSON) sensor data like temperature, pressure and humidity to the mqtt broker. The original Bosch SendDataOverMQTT is in use here with some slight modifications like username and password authentication to the mqtt broker.My Bosch XDK code to this one is available in this repo here.

This fake JSON is not necessary since Christopher Aldave‘s code transforms the input in real JSON, but you better try things out and add some complexity 🙂

This is MQTTlens (a Chromium addon) that I use to visualise the data as it is coming through.

The first monster of Dr. FrankenCode:

I took the original code from Christopher Aldave‘s repository MAMExample on Github and adapted it to my purpose. So I’ve added an mqtt client connection, a mqtt topic subscription.