nyxnyx / xmeye

XMEye Cameras Custom Component for Home Assistant
GNU General Public License v3.0
30 stars 17 forks source link

Request - response matching #4

Open alex-eri opened 3 years ago

alex-eri commented 3 years ago

Hi, Grzegorz

I writing async client for xm camera too. Reading responces done in separate task for true async requests. My problem is matching some requests with responses.

LOGIN, KeepAlive, OPTimeQuery, OPFileQuery responds with same sequence_number, but OPPlayBack respond with sequence_number+1. Do you know if this is Camera bug or feature? Maybe you seen some docs about it.

My code https://github.com/alex-eri/xmcam