I understood the problem. It takes an hour to get to the restart when it doesn’t connect initially.
This is not an easy fix. It would require developing code to replace the failing package that I use (WiFiManager) which works OK in all other respects. I can see myself trading one problem for several others. Better the devil that you know.
This is not a data integrity issue for virtually all users that push their data to one or more of the supported servers. If you are pulling with query, the data is there, and it’s there because after three minutes we quit fooling around with the WiFi and get back to monitoring. They are mutually exclusive.
When I get some time, I’ll revisit and try a few random things to see if I can make it connect, but I have to avoid the laws of unintended consequences and it takes a long time to test this area of the code because we are inherently working with delays of several minutes every time.