-
Notifications
You must be signed in to change notification settings - Fork 1k
python-ecosys/kpn-senml: Add KPN SenML library. #541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fbe7e6a
to
261dbca
Compare
@jimmo If this is merged, and then |
How does this relate to https://github.com/kpn-iot/senml-python-library and https://github.com/kpn-iot/senml-micropython-library, is it just a copy of the latter? If so, then I don't think adding it verbatim here is the right way to go. Instead one can just use the github URL to reference this library. (All the examples have a boot.py and pymakr.conf which are really not necessary.) |
It's a copy of https://github.com/kpn-iot/senml-micropython-library with some patches on top (fixes for broken types, broken iterator etc..). Both libraries seem unmaintained and they don't respond to PRs/issues, and as of now we don't have a way to freeze remote modules in
I can remove whatever you don't want, I just didn't want to remove something that might be useful |
Out of interest, what do you need this library for? Are there other libraries that could be used instead?
I think that's the best solution at this point in time: to fork that repo, apply your patches as new commits, then implement freezing of remote URLs in manifest.py. |
It's used by cloud clients to parse/create CBOR/JSON. And not aware of another library, but this one works really well.
I don't mind that. My end goal is just to make devices capable of connecting to the cloud out of the box, and for that I need this library, #508 for time and improved logging in #507 and the cloud client library which won't be in I think #508 and #507 are generic enough to be in |
3bc265c
to
fa9837e
Compare
We need to consider this as two separate components: cbor and senml. And for both of them we need to consider whether the library is trying to be compatible with an existing library, or if it's a custom MicroPython library. For cbor: there is an existing For senml: aside from Edit: link to |
Agree to both -- cbor2 and rename to senml, remove all kpn references. |
@dpgeorge @jimmo By remove them, you mean rename |
fa9837e
to
82eb971
Compare
Hi, what other changes are needed here to move forward with this ? |
I suggest to just remove all |
82eb971
to
522b560
Compare
Removed the file and and replaced all references with strings, I also updated the license headers, how does it look now ? I just have one concern, do we need the |
96e54bf
to
864c95b
Compare
Yes they need to be nested, because it's a package. So you have it correct. |
For |
ca31744
to
a57282a
Compare
Done. |
This aims to follow the API of the cbor2 library found at https://github.com/agronholm/cbor2 (also on PyPI as cbor2). The original source for this MicroPython version of cbor2 is from https://github.com/kpn-iot/senml-micropython-library.
This is a new library that doesn't follow any existing API. The library is originally from https://github.com/kpn-iot/senml-micropython-library.
a57282a
to
9ee0257
Compare
Merged!! |
Yes! Please do remove the u-prefixes on the imports. |
No description provided.