python-onvif-zeep icon indicating copy to clipboard operation
python-onvif-zeep copied to clipboard

[fix] Blank Topic title in PullMessages

Open wanglong001 opened this issue 2 years ago • 0 comments

[fix] Blank Topic title in PullMessages

[{
    'SubscriptionReference': None,
    'Topic': {
        '_value_1': None,
        'Dialect': 'http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet',
        '_attr_1': {
    }
    },
    'ProducerReference': None,
    'Message': {
        '_value_1': <Element {http://www.onvif.org/ver10/schema}Message at 0x7fe221a2f348>
    }
}]

https://github.com/FalkTannhaeuser/python-onvif-zeep/issues/69

ref: https://github.com/hunterjm/python-onvif-zeep-async/commit/5b712c4e7300ac4982f9de5f265f2d0a9d369a51

add this patch:

{
    'SubscriptionReference': None,
    'Topic': {
        '_value_1': 'tns1:VideoSource/MotionAlarm',
        'Dialect': 'http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet',
        '_attr_1': {
    }
    },
    'ProducerReference': None,
    'Message': {
        '_value_1': <Element {http://www.onvif.org/ver10/schema}Message at 0x1c5aca77a80>
    }
}

wanglong001 avatar Aug 18 '23 02:08 wanglong001