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

[miio] validate response id matching command id #9966

Merged
merged 3 commits into from
Jan 30, 2021

Conversation

marcelrv
Copy link
Contributor

This PR prevents out of sync issues in case devices are too slow to
respond or the timeout is set too short.

closes #9896

Signed-off-by: Marcel Verpaalen marcel@verpaalen.com

This PR prevents out of sync issues in case devices are too slow to
respond or the timeout is set too short.

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
@marcelrv marcelrv requested a review from cpmeister January 26, 2021 11:38
@marcelrv marcelrv added the bug An unexpected problem or unintended behavior of an add-on label Jan 26, 2021
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
@marcelrv marcelrv requested a review from fwolter January 26, 2021 20:04
@marcelrv marcelrv added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Jan 27, 2021
@kaikreuzer kaikreuzer added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Jan 27, 2021
@marcelrv
Copy link
Contributor Author

@cpmeister / @fwolter would you mind reviewing this, so it can still make the 3.1M1this weekend. Would be good to have this fix in.

@fwolter fwolter merged commit f58df8f into openhab:main Jan 30, 2021
@fwolter fwolter added this to the 3.1 milestone Jan 30, 2021
@marcelrv marcelrv deleted the miio-command-responseSync branch February 1, 2021 20:36
lsiepel added a commit to lsiepel/openhab-addons that referenced this pull request Feb 9, 2021
lucacalcaterra pushed a commit to lucacalcaterra/openhab-addons that referenced this pull request Feb 23, 2021
* [miio] validate response id matching command id

This PR prevents out of sync issues in case devices are too slow to
respond or the timeout is set too short.

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] spotless adding space

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] update based on review

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: Luca Calcaterra <calcaterra.luca@gmail.com>
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
* [miio] validate response id matching command id

This PR prevents out of sync issues in case devices are too slow to
respond or the timeout is set too short.

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] spotless adding space

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] update based on review

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
* [miio] validate response id matching command id

This PR prevents out of sync issues in case devices are too slow to
respond or the timeout is set too short.

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] spotless adding space

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] update based on review

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
* [miio] validate response id matching command id

This PR prevents out of sync issues in case devices are too slow to
respond or the timeout is set too short.

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] spotless adding space

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>

* [miio] update based on review

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[miio] Response sometimes out of sync with the request leading to possible wrong updates
3 participants