
PROJECT
| Souparno Baidya | AUTHOR | ACTIVE |
| Sohan Aiyappa | COORDINATOR | ACTIVE |

A server that uses blockchain technology with IOTA works by connecting all IoT devices (like sensors, actuators, and microcontrollers) to a distributed network built on the Tangle, which is IOTA’s unique ledger based on a Directed Acyclic Graph instead of a traditional blockchain. When a device sends data, the server helps place this information onto the Tangle, where every new transaction must approve two previous ones. This peer-validation means there are no miners and no fees, making it ideal for huge numbers of tiny device-to-device (micro)transactions.
As more devices connect and send data, the system becomes faster and even more secure, with every device helping confirm others’ information. This architecture is highly scalable (it can handle millions of messages per second), energy efficient, and protects the integrity of the IoT data by making all records tamper-proof and public for verification. Automation can be added on top, letting the network not only store sensor data but also make decisions or trigger devices automatically. All of this makes IOTA-based blockchain servers an excellent fit for future smart homes, cities, and industrial IoT where trust, speed, and transparency are critical.
import paho.mqtt.client as mqtt
import json
data = {
'device': 'temp_sensor1',
'type': 'temperature',
'value': 39.5
}
client = mqtt.Client()
client.connect('broker.example.com', 1883, 60)
client.publish('iot/data', json.dumps(data))
client.disconnect()
ESP32 sends temperature data to cloud or directly to IOTA node for processing and logging[web:9].
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.6;
contract IoTAction {
int public lastTemp;
address public notifier;
constructor() {
count = 0;
}
function increment() public {
count += 1;
}
function decrement() public {
require(count > 0, "Count is already zero");
count -= 1;
}
function getCount() public view returns (uint) {
return count;
} } Demonstrates IOTA's support for Solidity contracts — easy to adapt for device automation[web:21][web:23].
setTemp(value) when data arrives.