that wasn't my issue. on my old project I had it check the wifi every min or so and reconnect if needed. the issue I really think was I was using a bad image. I was running into a power issue (I thought) that prevent it to boot at times. If I got it to boot my wifi would only stay on for a day or two max and then I would have to try and get it to connect again. I was thinking it was a power issue and just gave up on the unit. Order all new equipment and when I got the new equipment there was a note that said "if you see this during boot its not a power issue it a bad image".Nice to see you back active again .
I tend to drop a systemd timer unit, in each of my build that restarts wifi at night, every day. My theory is even if wifi is down or the network screws up, at midnight the wifi service will be restart, and everything should be back on. Since I started deploying these timers, I have not see long-standing wifi drop out issues.