FalkTannhaeuser / python-onvif-zeep

ONVIF Client Implementation in Python 2+3 (using https://github.com/mvantellingen/python-zeep instead of suds as SOAP client)
MIT License
420 stars 137 forks source link

Fail in creating ONVIFCamera if daemon=True #93

Open relaxtheo opened 2 years ago

relaxtheo commented 2 years ago

What's the function of "daemon=True" in ONVIFCamera?

I tried modifying the tests/test.py, if enable daemon like below:

cam = ONVIFCamera(CAM_HOST, CAM_PORT, CAM_USER, CAM_PASS, daemon=True)

In update_xaddrs function (client.py), the following code: capabilities = self.devicemgmt.GetCapabilities() get None capabilities.

Without the daemon=True option, no this problem.

Quite strange, what's the problem? Thank you.