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

Transport improvements #29

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hostcc
Copy link

@hostcc hostcc commented Apr 30, 2022

  • BaseTransport.read() has got better logging with regards to processing steps. Also, start and end chars now use constants instead of duplicated literals
  • BaseTransport.read() and BaseTransport.simple_read() have been reworked to allow receiving end chars with no start chars previously seen - that might happen when ACK/NACK received
  • AnswerDataMessage.from_representation(): validate BCC only if data present, there might be cases when data is empty e.g. when ACK/NACK received

hostcc added 3 commits April 30, 2022 23:10
* `BaseTransport.read()` has got better logging with regards to processing
  steps. Also, start and end chars now use `constants` instead of
  duplcicated literals
* `BaseTransport.read()` and `BaseTransport.simple_read()` have been
  reworked to allow receiving end chars with no start chars previously
  seen - that might happen when ACK/NACK received
  present, there might be cases when data is empty e.g. when ACK/NACK
  received
  (`bytes.hex()` takes no arguments in that version)
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.

1 participant