Skip to content
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

Merged
merged 30 commits into from
Mar 31, 2023
Merged

All-in-one pull-request, see comment #4

merged 30 commits into from
Mar 31, 2023

Conversation

lh70
Copy link
Collaborator

@lh70 lh70 commented Mar 28, 2023

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.

Removed MicroPython incompatible string building syntax.
Added rudimentary push endpoint support.
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.
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)
Copy link
Owner

@teschmitt teschmitt left a 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.

py_dtn7/__init__.py Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
py_dtn7/bundle.py Show resolved Hide resolved
Co-authored-by: Thomas Schmitt <t.e.schmitt@gmail.com>
@teschmitt teschmitt merged commit 771235b into teschmitt:main Mar 31, 2023
teschmitt added a commit that referenced this pull request Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants