]> git.basschouten.com Git - openhab-addons.git/commit
[ihc] Improved command handling when controller is not ready (#10895)
authorpali <pauli.anttila@gmail.com>
Thu, 15 Jul 2021 17:49:59 +0000 (20:49 +0300)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 17:49:59 +0000 (19:49 +0200)
commitfe91fb635a3e36c60e50948af9e2dfd02bc7c43b
tree12f7e2e3a0dd4792029ed0333cce5843e0583d3c
parent69bc7183d6ec2fa1715aeeeaac4ef10a780842bb
[ihc] Improved command handling when controller is not ready (#10895)

* [ihc] Improved command handling when controller is not ready

When connection from binding to IHC controller is open, but controller
is in programming state, things state is offline with special status to
indicate that binding can't send or receive any resource updates at the
moment. Things status check during command sending will prevent
unnecessary resource updates which will eventually fail and binding then
tries to restart the connection.

Signed-off-by: Pauli Anttila <pauli.anttila@gmail.com>
bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/handler/IhcHandler.java