-
Notifications
You must be signed in to change notification settings - Fork 1
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
All-in-one pull-request, see comment #4
Conversation
Removed MicroPython incompatible string building syntax. Added rudimentary push endpoint support.
…Python compatible.
Added MicroPython compatible enum support. (Maybe remove enums completely at some point) Removed MicroPython incompatible string builder.
… no satisfying websockets implementation for MicroPython.
added all mandatory fields to PrimaryBlock. made fields in PrimaryBlock public. moved PrimaryBlock creation from cbor into own method.
Renamed flags for expressiveness.
Reworked bundle representation.
Removed unnecessary helper methods.
Removed a wrong import.
…or() encoding method.
Removed a comment.
Improved repr of bundle and blocks. Added object generation/builder functions for PrimaryBlock, PayloadBlock, BundleAgeBlock, and HopCountBlock. Improved Bundle generation/creation.
…l_seconds) Fixed bug where wrong class was instantiated. (PreviousBlock -> PayloadBlock)
…rrent time as dtn timestamp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for your substantial contributions to this library! Your changes have made the code base significantly more mature and readable. Making it compatible with the MicroPython implementation is the cherry on top.
Please look over my suggested changes and let me know what you think. All of them are not critically important but would really round off the PR.
Co-authored-by: Thomas Schmitt <t.e.schmitt@gmail.com>
Adds a simpler Flag class.
Adds a full bundle representation + object creation + (de-)serialization (without CRC and fragments support).
Added imports and modified dtn_rs_client.py to support Micropython.
fixed bug with timestamp deserialization and "now" timestamp creation.
fixed bug in dtn_ws_client.py that hindered a successful import.