import paho.mqtt.client as mqtt
broker_address = "192.168.86.101"
broker_portno = 1883
client = mqtt.Client()
client.connect(broker_address, broker_portno)
client.subscribe("Test")
client.publish(topic = "Test", payload = "Hello",qos=0)

#mosquitto_sub -h 192.168.86.101 -t "Test"
#this commnad is used for subscribe the topics
#Note:high concern the broker address... it differ for u . 
#use : ifconfig for linux
738adb1a4a4ff9539fa722077499e9df13b23876
<mask token>

<mask token>
client.connect(broker_address, broker_portno)
client.subscribe('Test')
client.publish(topic='Test', payload='Hello', qos=0)

<mask token>
broker_address = '192.168.86.101'
broker_portno = 1883
client = mqtt.Client()
client.connect(broker_address, broker_portno)
client.subscribe('Test')
client.publish(topic='Test', payload='Hello', qos=0)

import paho.mqtt.client as mqtt
broker_address = '192.168.86.101'
broker_portno = 1883
client = mqtt.Client()
client.connect(broker_address, broker_portno)
client.subscribe('Test')
client.publish(topic='Test', payload='Hello', qos=0)

import paho.mqtt.client as mqtt
broker_address = "192.168.86.101"
broker_portno = 1883
client = mqtt.Client()
client.connect(broker_address, broker_portno)
client.subscribe("Test")
client.publish(topic = "Test", payload = "Hello",qos=0)

#mosquitto_sub -h 192.168.86.101 -t "Test"
#this commnad is used for subscribe the topics
#Note:high concern the broker address... it differ for u . 
#use : ifconfig for linux