My question is is it a bad idea to put a 10 or 15 second delay at the very beginning of a sketch? I’ll explain:
I have a bug in a sketch that hangs while using the http client. I am working on that bug. However, it seems to cause me to often not be able to OTA update firmware with a new one. If I hardboot the core and then send the sketch immediately I can get it in but if I let it run for more then a few seconds and hit my bug I can’t update it.
I think the core is rebooting after hitting this bug but I have not proven that yet. If it is rebooting and I put a delay at the beginning it might give me enough time to get the new sketch in.
Is this a terrible idea?