Geo SCADA Knowledge Base
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Link copied. Please paste this link to share this article on your social media post.
Originally published on Geo SCADA Knowledge Base by Anonymous user | June 10, 2021 04:14 AM
To test the MQTT driver you can use the mosquitto software.
Go to https://mosquitto.org/
Download (for Windows) the installer (follow the Binary ... Windows links or click https://mosquitto.org/files/ and click 'binary', 'win64' and the latest version.
Install this. There will be no Start menu addition, find the service in the Windows Services applet and start it.
If it fails to start, there is no log, so it's easier to run on the command line to find the problem.
cd C:\Program Files\mosquitto
mosquitto -v
You may need to edit the mosquitto.conf file, located in the
C:\Program Files\mosquitto
folder. Edit this using Administrator permissions.
You may also need to add a firewall rule to allow this port to be exposed beyond localhost.
Once the broker is running, you can use the mosquitto_pub utility to publish messages.
mosquitto_pub -h 127.0.0.1 -p 1883 -t "East/MyDevice1" -m "{""time"": 1597228825, ""Analog1"":12.7}"
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.