def on_connect(pahoClient, obj, flags, rc):
	# Once connected, publish message
    print("Connected Code = %d"%(rc))

def on_message(client, userdata, message):
    print("message received " ,str(message.payload.decode("utf-8")))
    print("message topic=",message.topic)
    print("message qos=",message.qos)
    print("message retain flag=",message.retain)

def on_publish(client,userdata,result):             #create function for callback
    print("data published \n")
def on_connect(pahoClient, obj, flags, rc):
	# Once connected, publish message
    print("Connected Code = %d"%(rc))

def on_message(client, userdata, message):
    print("message received " ,str(message.payload.decode("utf-8")))
    print("message topic=",message.topic)
    print("message qos=",message.qos)
    print("message retain flag=",message.retain)

def on_publish(client,userdata,result):             #create function for callback
    print("data published \n")
# Once connected, publish message #create function for callback