mirror of
https://github.com/koush/scrypted.git
synced 2026-09-19 10:10:39 +01:00
ONVIF: ignore invalid (array) ONVIF events from Axis cameras (#1253)
This commit is contained in:
@@ -90,8 +90,9 @@ export class OnvifCameraAPI {
|
||||
|
||||
const eventTopic = stripNamespaces(event.topic._);
|
||||
|
||||
if (event.message.message.data && event.message.message.data.simpleItem) {
|
||||
if (event.message.message.data && event.message.message.data.simpleItem && event.message.message.data.simpleItem.$) {
|
||||
const dataValue = event.message.message.data.simpleItem.$.Value;
|
||||
|
||||
if (eventTopic.includes('MotionAlarm')) {
|
||||
// ret.emit('event', OnvifEvent.MotionBuggy);
|
||||
if (dataValue)
|
||||
|
||||
Reference in New Issue
Block a user