Add requirements handling.
This commit is contained in:
parent
2ce37d3a00
commit
da1495d642
@ -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
|
||||||
|
4
setup.py
4
setup.py
@ -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'])
|
||||||
|
Loading…
Reference in New Issue
Block a user