Skip to content

Commit b50d346

Browse files
meirarmondpgeorge
authored andcommitted
umqtt.simple: Return op from wait_msg() as indication of reception.
Fixes issue micropython#328.
1 parent 9bc0b15 commit b50d346

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

micropython/umqtt.simple/umqtt/simple.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def wait_msg(self):
206206
self.sock.write(pkt)
207207
elif op & 6 == 4:
208208
assert 0
209+
return op
209210

210211
# Checks whether a pending message from server is available.
211212
# If not, returns immediately with None. Otherwise, does

0 commit comments

Comments
 (0)