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

A server that uses decetralized 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. When a device sends data, the server helps place this information onto the Tangle, which stores data in a analysable way.
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 decentralized servers an excellent fit for future smart homes, cities, and industrial IoT where trust, speed, and transparency are critical.
IOTA Tangle (DAG-based, not standard blockchain): ensures feeless, scalable device communication[web:2][web:4].
MQTT/REST APIs: lightweight protocols for device-cloud messaging.
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].
Alpine Linux is used to host it and it starts. My one responds with the server started and the sails are lifted. It was a custom part for my server not in cisco's server. Node mcu and node red had to bo setup first and sometimes the code need to be changed for that. Mqtt connects it after initial wifi. The wifi thing doesn't ocnnect the device to the server.

It connects to the devices using mqtt and it can connect upto 3 esp32. HAve theor communication in mqtt and show it in node red dashboard.


setTemp(value) when data arrives.