Repository for the CoAP publish-subscribe project for Politecnico di Milano MSc thesis based on the CoAPthon3 Library
Please use Python version 3.6.9
Install all the requirements in a virtual environment by:
python3 -m venv /path/to/virtual/env
source /path/to/virtual/env/bin/activate
python3 -m pip install -r requirements.txt
To run the broker instantiate it and call the start method or run the script with:
python3 broker/broker.py
To run the client instantiate a PSClient object from Client/PSClient.py and call the methods to perform the requests. An example script is contained in testClient.py
The following files and directories are important for the execution, others not cited down here have been used for testing:
- /lib directory
- /broker directory
- /Client directory
/Client/PSClientTesting.py and /broker/brokerTesting.py contain modified version of the broker and client used for testing purposes.