Question: Question: broker address -a = localhost port -p = 1883 keepAlive -k = 60 1) Please solve the python code in which line got problem

 Question: broker address -a = localhost port -p = 1883 keepAlive

-k = 60 1) Please solve the python code in which line

got problem and need changes as stated in the second last picture.

Please state which line need to be improve and give your solution.

2) I run the python code in Raspberry Pi OS but it

got problem. How can I fix both problem python script & run

Question: broker address -a = localhost port -p = 1883 keepAlive -k = 60 1) Please solve the python code in which line got problem and need changes as stated in the second last picture. Please state which line need to be improve and give your solution. 2) I run the python code in Raspberry Pi OS but it got problem. How can I fix both problem python script & run in OS? Thanks

#!/ usr/bin/python 3 import paho.mqtt. client as mqtt import time from tqdm import tqdm import subprocess import sys def parsing_parameters( ) : 1=len(sys.argv) port =1883 keepAlive =60 \#Script with no parameteres if (1=1) : print("'n Usage: python3 MQIT_SlowDoS.py - a Broker_Address -p Broker_Port - k Keep_Alive -a IP address of MQTT broker python3 MQTT_SlowDoS.py - a -p Broker_Port> - k \&Keep_Alive> IP address of MOTT broker try:- try: Usage : a IP address of MQTT broker

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!