#!/usr/bin/env python2.7

import py_mqtt_client
import sys

print ("Enter the portno for publisher")
portno=raw_input(">")

print ("Enter the IP of mqtt broker (127.0.0.1) ")
ip=raw_input(">")

clientid="BWMQTTClient"
portno_value=int(portno)
timeout=60
ip_value=str(ip)
clean_session=0
username=""
password=""
willflag=True
willqos=0
willretain=True
willtopic="home/room_temp"
willmessage="temp 27"

Client=py_mqtt_client.MQTTclient(clientid,portno_value,timeout,ip_value,clean_session,username,password,willflag,willqos,willretain,willtopic,willmessage)
Client.connect()
Client.disconnect()


0b2249d68e752e227144762912d1e1ff6e3c6e07
<mask token>

<mask token>
print('Enter the portno for publisher')
<mask token>
print('Enter the IP of mqtt broker (127.0.0.1) ')
<mask token>
Client.connect()
Client.disconnect()

<mask token>
print('Enter the portno for publisher')
portno = raw_input('>')
print('Enter the IP of mqtt broker (127.0.0.1) ')
ip = raw_input('>')
clientid = 'BWMQTTClient'
portno_value = int(portno)
timeout = 60
ip_value = str(ip)
clean_session = 0
username = ''
password = ''
willflag = True
willqos = 0
willretain = True
willtopic = 'home/room_temp'
willmessage = 'temp 27'
Client = py_mqtt_client.MQTTclient(clientid, portno_value, timeout,
    ip_value, clean_session, username, password, willflag, willqos,
    willretain, willtopic, willmessage)
Client.connect()
Client.disconnect()

import py_mqtt_client
import sys
print('Enter the portno for publisher')
portno = raw_input('>')
print('Enter the IP of mqtt broker (127.0.0.1) ')
ip = raw_input('>')
clientid = 'BWMQTTClient'
portno_value = int(portno)
timeout = 60
ip_value = str(ip)
clean_session = 0
username = ''
password = ''
willflag = True
willqos = 0
willretain = True
willtopic = 'home/room_temp'
willmessage = 'temp 27'
Client = py_mqtt_client.MQTTclient(clientid, portno_value, timeout,
    ip_value, clean_session, username, password, willflag, willqos,
    willretain, willtopic, willmessage)
Client.connect()
Client.disconnect()

#!/usr/bin/env python2.7

import py_mqtt_client
import sys

print ("Enter the portno for publisher")
portno=raw_input(">")

print ("Enter the IP of mqtt broker (127.0.0.1) ")
ip=raw_input(">")

clientid="BWMQTTClient"
portno_value=int(portno)
timeout=60
ip_value=str(ip)
clean_session=0
username=""
password=""
willflag=True
willqos=0
willretain=True
willtopic="home/room_temp"
willmessage="temp 27"

Client=py_mqtt_client.MQTTclient(clientid,portno_value,timeout,ip_value,clean_session,username,password,willflag,willqos,willretain,willtopic,willmessage)
Client.connect()
Client.disconnect()

