torch-agent/example
B.J. Dweck d09b6580aa Updated example README.md 2020-10-07 13:17:08 +02:00
..
agent-config Example should use mqtt.example.com instead of my unique Tor hidden service address :-) (which I will now change) 2020-10-06 15:22:20 +02:00
broker-config Reorganized and regenerated example PKI 2020-10-06 13:54:00 +02:00
pki Reorganized and regenerated example PKI 2020-10-06 13:54:00 +02:00
subscriber-config Reorganized and regenerated example PKI 2020-10-06 13:54:00 +02:00
README.md Updated example README.md 2020-10-07 13:17:08 +02:00
Vagrantfile Working Debian package! 2020-10-07 12:13:36 +02:00
run-broker.sh Reorganized and regenerated example PKI 2020-10-06 13:54:00 +02:00
run-subscriber.sh Reorganized and regenerated example PKI 2020-10-06 13:54:00 +02:00
torch-agent_0.0.1-1_all.deb Automated Debian package build 2020-10-07 12:48:55 +02:00

README.md

TORch Agent Example

The example creates a Vagrant machine configured with TORch Agent

Running the Example

Install dependencies

Run the Broker

Add the following line to your /etc/hosts file:

127.0.0.1    mqtt.example.com

Run the broker in a terminal window:

./run-broker.sh

Run the Subscriber

In a separate terminal window, run the subscriber:

./run-subscriber.sh

Run TORch Agent in Vagrant

Build the latest source into a Debian package and copy it to example/

cd ..
./make-pkg.sh john@doe.com
cp -f build/torch-agent_0.0.1-1_all.deb example/
cd example

Run the Vagrant box in a third terminal window:

vagrant up

You should see that the broker received a connection from the Vagrant box at boot up and the subscriber received the onion hostname. You can use a local tor proxy to connect to the vagrant box using SSH and the onion hostname.