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

Flush port after write #39

Merged
merged 1 commit into from
Mar 30, 2024
Merged

Conversation

gekkekoe
Copy link
Contributor

I have an automation that sets the tank setpoint to 55c when the legionella prevention starts. This automation sends a mqtt command on state change of the operation mode. The command gets lost when there's communication going on (reading other status info).

If we flush the port after a write, then the problem is fixed.
see: https://www.arduino.cc/reference/tr/language/functions/communication/serial/flush/

@rbroker rbroker merged commit 3439892 into rbroker:main Mar 30, 2024
4 checks passed
@rbroker
Copy link
Owner

rbroker commented Mar 30, 2024

LGTM, thank you!

rbroker added a commit that referenced this pull request Apr 5, 2024
Apply serial port flushing added in PR #39
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.

None yet

2 participants