Skip to content

Commit a11a016

Browse files
committed
Bumped v0.6.7
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 5b676e2 commit a11a016

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

labstack/message.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ def __init__(self, account_id, api_key, client_id):
77
self.client.username_pw_set(account_id, api_key)
88
self.client.connect("iot.labstack.com", 1883)
99

10-
def on_connect(self, handler):
11-
def on_connect(client, userdata, flags, rc):
10+
def connect_handler(self, handler):
11+
def connect_handler(client, userdata, flags, rc):
1212
handler()
13-
self.client.on_connect = on_connect
13+
self.client.on_connect = connect_handler
1414

15-
def on_data(self, handler):
16-
def on_data(client, userdata, msg):
15+
def data_handler(self, handler):
16+
def data_handler(client, userdata, msg):
1717
handler(msg.topic, msg.payload)
18-
self.client.on_message = on_data
18+
self.client.on_message = data_handler
1919

2020
def publish(self, topic, message):
2121
self.client.publish('{}/{}'.format(self.account_id, topic), message)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='labstack',
5-
version='0.6.6',
5+
version='0.6.7',
66
description='Official Python client library for the LabStack platform',
77
long_description='`<https://github.com/labstack/labstack-python>`_',
88
keywords='labstack cube email log mqtt store',

0 commit comments

Comments
 (0)