A small project that simulates a residencial automation using the mqtt protocol made as homework of the discipline of Distributed Systems at UFMA.
The project simulates three sensors(temperature, humidity and water level) in three different areas(bedroom, garden and swimming pool). Each sensor is a mqtt client and publish your data. There are three more clients who subscribe to the topic provided by the sensors and monitor each message published.
Homework: Develop an application using MQTT.
Description:
- Implement the mqtt protocol in a language of your choice.
git clone [email protected]:cHenrique0/mqtt-protocol.git
After cloning the project:
cd mqtt-protocol
pip intall --upgrade pip
pip install -r requirements.txt
For instructions on how to install the broker: Mosquitto download
If you are using Windows, you may need to restart your system for the installation to work.
# Open a terminal and run the publisher
python pub.py
# In another terminal run the subscriber
python sub.py