print exception from unpacking
This commit is contained in:
parent
144fe8ae5c
commit
adefeed0c7
1 changed files with 3 additions and 1 deletions
|
|
@ -100,7 +100,9 @@ while True:
|
|||
unpacked_msg = msgpack.unpack(b)
|
||||
print(f"Received (unpacked): {unpacked_msg}")
|
||||
except Exception as e:
|
||||
print("Unable to unpack message")
|
||||
print("Unable to unpack message. Exception: ")
|
||||
print(e)
|
||||
|
||||
# send reading after any packet received
|
||||
if time.monotonic() - time_now > transmit_interval:
|
||||
# reset timeer
|
||||
|
|
|
|||
Loading…
Reference in a new issue