📢📢📢We are currently actively testing our newly redesigned solution with our customers, once that is done. You can expect a new stable version to be open sourced, and more! 🔥
For further quesitons, please visit thingsprotocol.com or send a note to 📧[email protected]
Project Description - Test project of the EVEC IoT API (mini-release version) on Hedera testnet & mainnet. EVEC is building a distributed IoT toolkit to enpower IoT developers to manage IoT devices (securely) with Distributed Ledger Technology.
This demo project is part of the IoT Platform Evolution Program. By leveraging the new DLT architecture, we will evolutionize the IoT ecosystem in Security, Interoperability, Application development.
More info will be released after the summer of 2019. Stay Tuned!
evec-mini-v0.1 is built with Hedera Java SDK and Python. Code has been tested both on a VM and Raspberry Pi (2&3).
- Environment Set-Up
- Other Notes
Before starting, ensure you have the following:
On your computer -
- Latest Hedera TestNet Account (created during or after the second community testing phase)
- JDK : 11.x
- Maven : 3.6.0
- If you are not familiar with JDK and Maven, refer this tutorial to install them run hashgraph java sdk demo in 5 min (non-developer proof)
On your Raspberry Pi/IoT device -
Install Raspbian
OS
Confirm you have Python3
and pip
installed on the raspberry pi (python2 will also work)
git clone
this repo on your laptop.- Also save the (Demo folder)[/Demo] and
.env
on your Raspi device.
cd
into the parent folder (i.e. wherever you downloaded this repository)
$ mvn install
$ pip install requests
$ pip install -U python-dotenv
- Update the env file with your account details. (Leave FILE_NUM and IP_ADDRESS as it is for now)
- cd into this folder and run the code by executing the following command
$ mvn spring-boot:run
- from the command line output, get the file number
- In the .env file, write this number next to FILE_NUM (instead of 0)
- Add the IP Address of your laptop to the .env file. (This is so that the rest apis exposed by the laptop can be called by the raspberry pi), make sure this .env file stored on each of your Raspberry Pi/IoT device.
- After following the above steps, once again run
$ mvn spring boot:run
. - Wait for command line output to show "You may call the Rest APIs now!".
- Now you can run
SenseHatDemo.py
(this requires a SenseHAT and Raspi), you will see the Led light turns on and off. - If the first demo is successful, you can try our second demo to run
client2.py
followed byclient1.py
. More detailed info can be found in the README.md file in Demo folder. - A UI-based example and instructions can be found in the webApp folder.
- Main functionality lies in here
- To run the hedera file etc. ensure you have sufficient funds.
- This functionality is up to date for SDK 0.4.6 OF HEDERA-JAVA-SDK