Mosquitto MQTT on the PC
- Mosquitto: the broker
- Mosquitto_pub: example of a publisher (sender of information about a topic)
- Mosquitto_sub: example of a subscriber (receiver of information about a topic)
Note: The Mosquitto_rr (combination of publisher and subscriber) was not available after the installation.
I am still searching for this one.
Playing with the parameters, with the WPS script it is easier to change the parameters.
Windows Power Shell script to start up the 3 command windows (update 30-08-2019):
cd "H:\Program Files\mosquitto"
#start-Process "cmd.exe" -ArgumentList "/K", "`"H:\Program Files\mosquitto\mosquitto.exe`"", " -c ", "mosquittoCvL.conf"," -v "
#Start-Process "cmd.exe" -ArgumentList "/K", "`"H:\Program Files\mosquitto\mosquitto_sub.exe`"", "-v -t test "
#Start-Process "cmd.exe" -ArgumentList "/K", "`"H:\Program Files\mosquitto\mosquitto_pub.exe`"", "-t test -m 'helloWorld' ", " --repeat ", "4", " --repeat-delay 1 "
The Mosquitto broker has also support for websockets. So it will be possible to make use of a browser the receive and send information.
Ltes find out how this is working.
First I need to modify the configuration file:
Fnd a HTML-jScript example that can be used as MQTT client.
When executing the html file as locale there is a problem with MS-Edge.
Microsoft Edge is not usable for the PaBo bacause it is blocking something. I am using CHrome now
Writing my own client