def on_message(client, userdata, msg):
    topic = msg.topic
    data = msg.payload.decode('UTF-8')
    print("Mqtt'den: Topic: {}, Message: {}".format(topic, data))
    if (topic == '/blue'):
        db.collection(Fb_Coll).document('color').update({topic: data})
    print('SEND')
    sleep(1)
def on_message(client, userdata, msg):
    topic = msg.topic
    data = msg.payload.decode('UTF-8')
    print("Mqtt'den: Topic: {}, Message: {}".format(topic, data))
    if (topic == '/blue'):
        db.collection(Fb_Coll).document('color').update({topic: data})
    print('SEND')
    sleep(1)