Is it possible you have an area with poor/no wifi signal? I had a problem with a wifi camera dropping signal at the far end of my house from the router. When I measured signal levels around my house using WIFI Explorer on a laptop, I found I was on the same 2.4GHz channel as a neighbor and it was knocking me offline when I got very far from my router. Initially I forced the router to a different channel and it was better. The real fix was installing an Orbi mesh network with two access points. I now have uninterrupted 2.4 and 5 GHz through my house and into the yard.