Files
picar/Messaging/messagepackex.py
2018-12-10 16:51:26 +10:30

9 lines
147 B
Python

import umsgpack
binary = umsgpack.packb({"compact": True, "schema": [0, False]})
obj = umsgpack.unpackb(binary)
print(obj)
print(obj['schema'])