tydids-p2p-mqtt
v1.2.0
Published
TyDIDs based P2P Data Identity collector and publisher for MQTT / MQIsdp / WMQTT
Downloads
8
Maintainers
Readme
tydids-p2p-mqtt
TyDIDs based P2P Data Identity collector and publisher for MQTT / MQIsdp / WMQTT
Imagine a dataset that is available somewhere in the world might be accessed everywhere. How? You just need to know its address!
- Decide who is allowed to see this dataset.
- Forget about protocols, p2p, request-responds, polling for changes.
- Set a value in your dataset with one line of code
- Subscribe to changes with another single line of code
This is TyDIDs.
npm install -g tydids-p2p-mqtt
tydids-p2p-mqtt -h
Usage: tydids-mqtt
Options:
-priv --privateKey <key>
-n --influxHost <hostname>
-p --presentation [address]
-P --influxPort <port>
-d --influxDatabase <name>
-m --influxMeasurement <name>
-q --query <influxQuery>
-t --represent <MilliSeconds>
--createPrivateKey
-h, --help display help for command
Presentation on MQTT subscribtion
Terminal 1:
tydids-p2p-mqtt -t '/home#'
Terminal 2:
mosquitto_pub -h localhost -t /home/kitchen -m "27"
(optional) Terminal 3 (requires TyDIDS-P2P to be installed!):
tydids -p <PRESENTATION_FROM_TERMINAL1>
MQTT publish on Presentation update
Terminal 1:
tydids-p2p-mqtt -t '/tydids' -p 0x19B9f727e38F224dE49b564282c339F1f8e224Ea
Terminal 2:
mosquitto_sub -h localhost -t '/tydids/#'
Maintainer / Imprint
Project Website: https://tydids.com/