onetonfoot / micropython_cbor

A native c module for CBOR encoding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Micropython CBOR

A native C module for CBOR encoding

import ucbor

d = {
	"x" : 10,
	"y" : 11,
}

bs = ucbor.dumps(d)
ucbor.loads(bs)

Building

pip install pyelftools
git clone https://github.com/micropython/micropython.git /opt/micropython
ARCH=armv6 make

References

Various references used during development:

This is built on top of tinycbor v0.6, the original source code was modified to remove large switch statements to avoid the error undefined reference to __gnu_thumb1_case_uqi when compiling for arm.

About

A native c module for CBOR encoding


Languages

Language:C 97.0%Language:Perl 1.6%Language:Python 0.7%Language:QMake 0.4%Language:Makefile 0.3%