Add requirements handling.

This commit is contained in:
Thomas Klaehn 2019-08-14 15:04:28 +02:00
parent 2ce37d3a00
commit da1495d642
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class Mqtt(object):
try: try:
self.client.tls_set(self.ca_certs, self.certfile, self.keyfile) self.client.tls_set(self.ca_certs, self.certfile, self.keyfile)
res = self.client.connect(self.hostname, self.port, self.keepalive) res = self.client.connect(self.hostname, self.port, self.keepalive)
if res == mqtt_client.MQTT_ERR_SUCCESS: if res == mqtt_client.MQTT_ERR_SUCCESS:
res = self.client.loop_start() res = self.client.loop_start()
if res != mqtt_client.MQTT_ERR_INVAL: if res != mqtt_client.MQTT_ERR_INVAL:
ret = True ret = True

View File

@ -7,7 +7,7 @@ type 'python setup.py install' to install the distribution.
@author: Thomas Klaehn <thomas.klaehn@u-blox.com> @author: Thomas Klaehn <thomas.klaehn@u-blox.com>
''' '''
from distutils.core import setup from setuptools import setup
setup(name='mqtt', version='1.1.0', author='Thomas Klaehn', setup(name='mqtt', version='1.1.0', author='Thomas Klaehn',
author_email='tkl@blackfinn.de', packages=['mqtt']) author_email='tkl@blackfinn.de', packages=['mqtt'], install_requires=['paho-mqtt'])