Skip to content

Commit a3123fe

Browse files
authored
Update client.py
1 parent 2db8d90 commit a3123fe

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

microgear/client.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def client_on_disconnect(client, userdata, rc):
110110
on_disconnect()
111111
logging.info("Diconnected with result code "+str(rc))
112112

113-
114113
def connect(block=False):
115114
global block_loop
116115
block_loop = block
@@ -168,8 +167,6 @@ def auto_subscribeAndpublish():
168167
on_error("Microgear currently is not available.")
169168
logging.error("Microgear currently is not available.")
170169

171-
172-
173170
def subscribe_thread(topic,qos=0):
174171
if microgear.mqtt_client :
175172
logging.info("Auto subscribe "+topic)
@@ -192,7 +189,6 @@ def subscribe(topic,qos=0):
192189
else:
193190
subscribe_list.append("/"+microgear.appid+topic)
194191

195-
196192
def unsubscribe(topic):
197193
global current_subscribe_list
198194
global current_id
@@ -298,9 +294,6 @@ def get_requesttoken(cached):
298294
on_error("Request token is not issued, please check your appkey and appsecret.")
299295
logging.error("Request token is not issued, please check your appkey and appsecret.")
300296

301-
302-
303-
304297
def get_accesstoken(cached):
305298
microgear.requesttoken = cached.get("requesttoken")
306299
logging.info("Already has request token.")

0 commit comments

Comments
 (0)