Skip to content
Snippets Groups Projects
Commit 327a1141 authored by jkerdreu's avatar jkerdreu
Browse files

Cbor issues

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2441 b32b6428-25c9-4566-ad07-03861ab6144f
parent d2b5f717
Branches
No related tags found
No related merge requests found
from xaal.lib import bindings, cbor
uuid = bindings.UUID.random()
data = ["foobar",2,{"device":uuid}]
tmp = cbor.dumps(data)
print(f"{data} => {tmp}")
data = cbor.loads(tmp)
print(f"{tmp} => {data}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment