print exception from unpacking

This commit is contained in:
foamyguy 2024-08-16 12:45:56 -05:00
parent 144fe8ae5c
commit adefeed0c7

View file

@ -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