def __init__(self, config) :
        name = config['name'] if 'name' in config else 'esp8266'
        host = config['host']
        port = config['port'] if 'port' in config else 0
        self.retries = config['retries'] if 'retries' in config else 1
        self.retain = config['retain'] if 'retain' in config else False
        self.qos = config['qos'] if 'qos' in config else 0
        self.topic = config['topic'] if 'topic' in config else 'log'
        self.client = mqtt.simple.MQTTClient(client_id=name, server=host, port=port)