Main Content

Sending Temperature and Humidity Data to the IOTA Tangle

The project is an attempt to combine the two technologies, MAM and MQTT, to store temperature and humidity information on the IOTA Tangle.

The project is an attempt to combine the two technologies, MAM and MQTT, to retrieve and store information in the blockchain. In this case the IOTA Tangle.

MQTT is a Client Server publish/subscribe messaging transport protocol. It is light weight, open, simple, and designed so as to be easy to implement. These characteristics make it ideal for use in many situations, including constrained environments such as for communication in Machine to Machine (M2M) and Internet of Things (IoT) contexts where a small code footprint is required and/or network bandwidth is at a premium.

Some of the advantages MQTT has are:

It’s efficient: The small message size makes it perfect for instances where bandwidth is constrained, an important consideration for IoT systems.
It’s easy to implement: MQTT is an open protocol which means multiple devices from different manufacturers can talk to one another providing huge flexibility.
It’s fast: MQTT is capable of providing data in a fast and real time manner.
Masked Authenticated Messaging (MAM) 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 or blockchain) regardless of the size or cost of device.

An example where both of this technologies are applicable is in:

Supply and Global trade: Creating immutable audit trails that keeps a hash of logistical updates. Providing data integrity in an attempt to improve transparency and access. Providing real time information such as location, temperature and humidity.

A live example in the logistics sector can be found here:

https://tradedemo.iota.org/#/

In this tutorial we will be retrieving IoT sensor data from an IoT device (a nodemcu) sending the data to a Raspberry Pi which is acting as a broker, and then storing this information on the blockchain. The blockchain we will be using in this case is the IOTA blockchain.”

Link to article