agsh / onvif

ONVIF node.js implementation
http://agsh.github.io/onvif/
MIT License
696 stars 237 forks source link

No events for TAPO C520 C510 #312

Closed TA2k closed 3 months ago

TA2k commented 8 months ago

The new TAPO cameras C5X0 has an issue with events Connection is working but I see something this in the log

Raw request: *******=2023-09-23T09:53:40.525Zhttp://192.168.0.112:1025/event-1025_1025
Raw response: http://192.168.0.112:1025/event-1025_1025http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/UnsubscribeResponse

Why I receive an unsubscribe response. the python onvif implementation is working with the camera.

agsh commented 4 months ago

@TA2k Hello! I can’t say for sure without a full analysis of all the logs, but last week I was working on events just for the TP-Link TAPO cameras regarding this issue and PR: https://github.com/agsh/onvif/pull/314 TL;DR: TAPO C220 forcibly closes the pull-request connection after 10sec which is contrary to the specification. (https://github.com/agsh/onvif/blob/master/lib/events.js#L261) In the new version 0.7.2 this camera behavior is processed and the library is reconnected without calling unsubscribe method. If you check it, please let me know the results.