mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[ipcamera] Fix Reolink events do not auto restart (#17581)
* Fix Reolink events do not auto restart. Signed-off-by: Matthew Skinner <matt@pcmus.com> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
69c519e06d
commit
c178939c91
@ -1593,6 +1593,11 @@ public class IpCameraHandler extends BaseThingHandler {
|
||||
sendHttpGET("/api.cgi?cmd=GetMdState&channel=" + cameraConfig.getNvrChannel() + reolinkAuth);
|
||||
} else {
|
||||
onvifCamera.sendOnvifRequest(RequestType.Renew, onvifCamera.subscriptionXAddr);
|
||||
if (onvifCamera.pullMessageRequests.intValue() == 0) {
|
||||
logger.debug("The alarm stream was not running for Reolink camera {}, re-starting it now",
|
||||
cameraConfig.getIp());
|
||||
onvifCamera.sendOnvifRequest(RequestType.PullMessages, onvifCamera.subscriptionXAddr);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case DAHUA_THING:
|
||||
|
Loading…
Reference in New Issue
Block a user