We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b676e2 commit a11a016Copy full SHA for a11a016
labstack/message.py
@@ -7,15 +7,15 @@ def __init__(self, account_id, api_key, client_id):
7
self.client.username_pw_set(account_id, api_key)
8
self.client.connect("iot.labstack.com", 1883)
9
10
- def on_connect(self, handler):
11
- def on_connect(client, userdata, flags, rc):
+ def connect_handler(self, handler):
+ def connect_handler(client, userdata, flags, rc):
12
handler()
13
- self.client.on_connect = on_connect
+ self.client.on_connect = connect_handler
14
15
- def on_data(self, handler):
16
- def on_data(client, userdata, msg):
+ def data_handler(self, handler):
+ def data_handler(client, userdata, msg):
17
handler(msg.topic, msg.payload)
18
- self.client.on_message = on_data
+ self.client.on_message = data_handler
19
20
def publish(self, topic, message):
21
self.client.publish('{}/{}'.format(self.account_id, topic), message)
setup.py
@@ -2,7 +2,7 @@
2
3
setup(
4
name='labstack',
5
- version='0.6.6',
+ version='0.6.7',
6
description='Official Python client library for the LabStack platform',
long_description='`<https://github.com/labstack/labstack-python>`_',
keywords='labstack cube email log mqtt store',
0 commit comments