Skip to content

The very first implementation of enhanced security in IoT using Blockchain **Simulation**

License

Notifications You must be signed in to change notification settings

Salmandabbakuti/IOT-Blockchain

Repository files navigation

IoT-and-Blockchain

Pre-Requisites

Npm packages

Truffle

npm install -g truffle

Pip

npm i pip

ganache-cli

npm install -g ganache-cli

Pip packages

Flask

Web3.py

GPIO Emulator

pip install requirements.txt

Desktop App

Python https://www.python.org/downloads/

STEPS

*** Make Sure prerequisites are installed***

1.clone the repository into desktop

  1. install required PiP dependencies

pip install requirements.txt

3.instantiate Ganache-cli Private Network.

ganache-cli

4.run app

py app.py

wait a moment. this will take a minute or two.

after deployment of contract in private network, you will see status of each pin in your command line and Emulator on Screen.

5.head into browser and type <Your computer ip>/ and control through UI.

basically, it will write particular pin status on blockchain and retrieve it from the chain. and then activate pin confiuaration accordingly.

boom.

© Salman Dabbakuti