I am using an ESP8266 as an IOT controller. All is working, but I need to make it bulletproof. If my local blynk server is down when the ESP8266 powers up, it exits micropython with an error.
I’m looking for a way it will loop/wait indefinitely for the blynk server to come up (without overloading the stack like my recursive try/except loop does).
I would also like a similar indefinite loop/wait if the server goes down at a later time (although this one seems easier since the blynk “object” is already established and I can probably use things like blynk.connect() to test for a connection - I can’t make this work if the server is down on boot)
Any help would be much appreciated!