Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhatbkk57/chord-based-discovery-iot
https://github.com/nhatbkk57/chord-based-discovery-iot
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nhatbkk57/chord-based-discovery-iot
- Owner: nhatbkk57
- Created: 2016-08-29T03:13:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T01:13:15.000Z (almost 6 years ago)
- Last Synced: 2024-08-02T19:37:01.722Z (3 months ago)
- Language: Python
- Size: 5.25 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chord-based-discovery-iot
## progress
- Implemented Chord basic operatior (join, leave, lookup ...) on 1 ring
- Implemented hashing sha1 for key## install
- install Flask web service: sudo pip install Flask
- Clone or Download git repository: https://github.com/nhatbkk57/chord-based-discovery-iot.git
## usage### step 1: run Flask web service
python app.py### step 2: send URL request to generate environment
Example:
curl --data "numring=1&numnode=100&numsensor=300" http://127.0.0.1:5000/env### send URL request to lookup keyID at nodeID
Example:
curl --data "nodeID=791&keyID=1410836122761576493812106956022308740271657004473" http://127.0.0.1:5000/lookup### send URL request to print environment in json format
curl http://127.0.0.1:5000/print