Skip to content

Commit 413b492

Browse files
committed
reverted some changes per request
1 parent 492acd5 commit 413b492

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ class MQTT:
115115
:param bool is_ssl: Sets a secure or insecure connection with the broker.
116116
:param bool log: Attaches a logger to the MQTT client, defaults to logging level INFO.
117117
:param int keep_alive: KeepAlive interval between the broker and the MiniMQTT client.
118-
"""
119118
119+
"""
120120
# pylint: disable=too-many-arguments,too-many-instance-attributes, not-callable, invalid-name, no-member
121121
def __init__(
122122
self,
@@ -193,8 +193,7 @@ def __exit__(self, exception_type, exception_value, traceback):
193193
self.deinit()
194194

195195
def deinit(self):
196-
"""De-initializes the MQTT client and disconnects from the mqtt broker.
197-
"""
196+
"""De-initializes the MQTT client and disconnects from the mqtt broker."""
198197
self.disconnect()
199198

200199
def will_set(self, topic=None, payload=None, qos=0, retain=False):
@@ -303,7 +302,8 @@ def connect(self, clean_session=True):
303302
raise MMQTTException("Invalid broker address defined.", e)
304303

305304
# Fixed Header
306-
fixed_header = bytearray([0x10])
305+
fixed_header = bytearray()
306+
fixed_header.append(0x10)
307307

308308
# NOTE: Variable header is
309309
# MQTT_HDR_CONNECT = bytearray(b"\x04MQTT\x04\x02\0\0")

0 commit comments

Comments
 (0)