Instructions
Instructions
2. Configure Mosquitto
Edit the mosquitto.conf file to set the correct paths for keyfile, certfile,
and cafile according to your certificates.
cd C:\Users\nipun\OneDrive\Documents\MosquittoProject\Pass
mosquitto -v -c "C:\Users\nipun\OneDrive\Documents\MosquittoProject\
Pass\mosquitto.conf"
After this step, the MQTT connection using mqttx should be successful.
Publisher Program
Open a terminal, navigate to the directory containing the Python
scripts, and run the publisher program by typing:
py publisher.py
Subscriber Program
In a separate terminal, run the subscriber program by typing:
py subscriber.py
Monitoring Interface
To monitor messages, open another terminal and run the monitoring
interface using:
py mqttx.py
Message Generator
Finally, open a new terminal to run the message generation and
publication program:
py mqttx_publisher.py
This will allow you to generate and publish messages to the desired topics by
selecting them in the interface.