Terminal 1 output of running crossbar.io
Terminal 1 output of running crossbar.io. This is the result of running the command:
$ docker run -v $PWD:/node -u 0 --rm --name=crossbar -it -p 8080:8080 crossbario/crossbar-armhf
Below is what the browser "192.168.x.xxx:8080/info looked like
Terminal 2 output: this is the result of running the commands:
$ sudo pip3 install -U autobahn[twisted,encryption,serialization,xbr]
$ cd crossbar-examples/getting-started
$ cd .crossbar
$ ls
$ cat config.json
$ cd ..
$ cd 1.hello-world
$ python3 client_component_publish.py
Was able to successfully install autobahn and use it to run client_component_publish.py which is what is displayed here
Run subscribe-client on Terminal 3
This is the output of running client component_subscribe.py on a third terminal
I was able t successfully install and run mosquito on the pi. Below is the result of running the mosquito sub:
$ mosquitto_sub -h localhost -v -t "\$SYS/#"
After mosquito sub was stopped, we then checked the status using the command:
$ service mosquito status
And then the command:
$ netstat -tln
and the results are shown below respectively.
service mosquito status netstat -tln
I was then able to have two separate terminals send and receive a message. As you can see on the right, that terminal (terminal 2) published the message hello and since the terminal on the left (Terminal 1) was subscribed it was able to see the published message.
I then successfully installed Paho which allowed me to have another method of sending a message from one terminal to another. Below on the left (Terminal 1) and on the right (Terminal 2). Like before we have 1 terminal publishing while the other is subscribing in order to send and receive messages.
The following image is the result of running pub-multiple.py and sub-mulitple.py on two separate terminal and it essentially sends and receives multiple messages at once
This is the result of running pubraspi.py and subraspi.py
Terminal 1
Terminal 2