micropython / micropython-lib

Core Python libraries ported to MicroPython
Other
2.39k stars 994 forks source link

Senml/cbor2 update. #821

Closed iabdalkader closed 6 months ago

iabdalkader commented 7 months ago

This update deprecates the decoder and encoder module, to maintain compatibility with the CPython cbor2 on pypi. The cbor2 module should now be imported and used directly instead of the decoder/encoder modules, for example:

import cbor2
cbor2.dumps(...)

The senml library, which uses cbor2, is updated to use the new API.

dpgeorge commented 6 months ago

Thanks, this is a good improvement, to make cbor2 match CPython.