linkwil / WeHomeSDK

SDK source code for communicating with Linkwil's battery doorbell & battery IP camera.
GNU Lesser General Public License v2.1
6 stars 4 forks source link

The connection to the camera is force closed automatically after around 2 minutes #8

Open dinhchinh82 opened 5 years ago

dinhchinh82 commented 5 years ago

Hello,

We are trying to integrate your camera to our own application. As the test result, the connection to the camera is force closed automatically after around 2 minutes viewing from the demo app.

We also tested with your official app and got the same issue.

What we expected is how to keep the connection as soon as end-user still open the viewing screen.

Please suggest us the solution how to do.

Thank you.

xiaojinsheng commented 5 years ago

Yes, the limitation of connection time for each session is 2 minutes, it is designed for avoid unexpected power consumption. We suggest you add a countdown timer on the viewing screen, and popup some alert to customer when countdown timer is 0, actually, we are also planning to do the same thing on WeHome APP

dinhchinh82 commented 5 years ago

the limitation of 2 minutes is applied to all the devices or not? I mean, for the camera which is attached to the solar panel, the power consumption may not be critical so it is OK to keep the connection longer. How do you think?

xiaojinsheng commented 5 years ago

Currently, it is for all the devices. I will report your opinion to my college to check if we should modify something. but for now, you can keep 2 minutes limitation for all devices, we will notify you if we changed something.