Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 822 Bytes

README.md

File metadata and controls

41 lines (23 loc) · 822 Bytes

IoT-and-Blockchain

IoT needs blockchain

Tools and Libraries

Truffle

Pip

Python3

ganache-cli

web3.py

Flask

GPIO Emulator

STEPS

1.clone the repository into desktop

  1. install required dependencies

pip install requirements.txt

3.instantiate Ganache-cli Private Network.

ganache-cli

4.run app

py app.py

wait a momemt.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.

5.head into browser and type <Your computer ip>/<pin number>/<action>/

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