Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 1.75 KB

ReadMe.md

File metadata and controls

18 lines (17 loc) · 1.75 KB

Instruction of how to run publisher: 0. first install the paho.mqtt for python by "pip install paho-mqtt==1.1" 1a. Setting the broker of the publisher in the publisher.py below this comment(default is the HiveMQ broker) #? ==============================remote broker========================================= 1b. or using the public broker for testing (default is the EMQ public broker), write another broker below this commment. #? =============================local test broker====================================== 2. also don't forget to ensure that the controller should use the same broker as the publisher, change the controller broker setting in publisher.py, in run_controller() function 3. change the initail Qos level and delay in this global variable ("Qos" and "delay") 4. at last just run the Publisher by using "Python 3....." in termianl

Instruction of how to run Analyser: 0. first install the paho.mqtt for python by "pip install paho-mqtt==1.1" 1a. Setting the broker of the analyser in the analyser.py below this comment(default is a special broker) #? ==============================remote broker========================================= 1b. or using the public broker for testing (default is the EMQ public broker), write another broker below this commment. #? =============================local test broker====================================== 2. select the QOS list and delay list that will be started, in the function timer, change the variable Qoses and delays to the Qos ordelay list you want. Note that the first Qos level and delay should correspond to the publisher default delay and Qos level. 3. at last just run the Publisher by using "Python 3....." in termianl