]> git.basschouten.com Git - openhab-addons.git/commit
[miio] validate response id matching command id (#9966)
authorMarcel <marcel@verpaalen.com>
Sat, 30 Jan 2021 11:05:08 +0000 (12:05 +0100)
committerGitHub <noreply@github.com>
Sat, 30 Jan 2021 11:05:08 +0000 (12:05 +0100)
commitf58df8fd25b375569394f68ce3b8235e863ae080
tree333e3f3fc4a195c666d6b5db30e8e0ed812b33a6
parent7a867c4b080b55baa924c7e11a29fb2a4a3dca04
[miio] validate response id matching command id (#9966)

* [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>
bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/transport/MiIoAsyncCommunication.java