]> git.basschouten.com Git - openhab-addons.git/commit
[ipcamera] Fix connection checks with ONVIF cameras with no snapshots (#15119)
authortb4jc <tb4jc@users.noreply.github.com>
Wed, 27 Sep 2023 06:54:15 +0000 (08:54 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2023 06:54:15 +0000 (08:54 +0200)
commitfef9680af51b03d4fff83fece6b0c93d82edd4d7
treed5d3171a2d0870cf02768a8c62aca3f4f76db3a0
parent99f0512c73d8cb585ce9418e7c84626efe3b957e
[ipcamera] Fix connection checks with ONVIF cameras with no snapshots (#15119)

* Added connection check via IdleStateHandler events for sent onvif requests.
Also checking connect errors and setting new states connectError or refusedError accordingly.
On connect, only one request is sent to have less parallel actions in case of reconnect, timeout.
Moved GetCapabilities call to GetSystemDateAndTime response handler part.
Added support to disable automatic polling at startup.

* Fixed call of sendOnvifRequest (missed to remove one call of requestBuilder).

---------

Signed-off-by: Thomas Burri <th@thonojato.ch>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
Co-authored-by: Matthew Skinner <matt@pcmus.com>
bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java
bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/onvif/OnvifCodec.java
bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/onvif/OnvifConnection.java