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

Support reception of non response payloads #188

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

elupus
Copy link
Collaborator

@elupus elupus commented Nov 10, 2024

If the gateway unit sends along all data instead of only response payloads, we need to understand the full payload sequence.

This allow us to forward all pump data to the udp port instead of just the response payload for modbus40.

If the gateway unit sends along all data instead
of only response payloads, we need to understand
the full payload sequence.
Copy link

codecov bot commented Nov 10, 2024

Codecov Report

Attention: Patch coverage is 88.57143% with 4 lines in your changes missing coverage. Please review.

Project coverage is 70.13%. Comparing base (e9f74f9) to head (f79e6e3).
Report is 12 commits behind head on master.

Files with missing lines Patch % Lines
nibe/connection/nibegw.py 88.57% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #188      +/-   ##
==========================================
+ Coverage   69.88%   70.13%   +0.25%     
==========================================
  Files          14       14              
  Lines        1348     1356       +8     
==========================================
+ Hits          942      951       +9     
+ Misses        406      405       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@elupus elupus marked this pull request as draft November 10, 2024 13:05
@elupus
Copy link
Collaborator Author

elupus commented Nov 10, 2024

Need to add a testcase

@elupus elupus marked this pull request as ready for review November 10, 2024 21:33
if block.start_byte == "RESPONSE":
self._on_response(block, addr)
else:
logger.debug(block)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add some prefix here of what is being logged. Otherwise, it is fine.

@yozik04 yozik04 merged commit ce8f666 into yozik04:master Dec 12, 2024
8 checks passed
@yozik04
Copy link
Owner

yozik04 commented Dec 12, 2024

I forgot about this one.

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