I really have read (and reread) many explanations, tutorials and forum threads on this and I just get stuck at one thing:
If I use millis as a replacement for delay (that is, I just need to pause the program for 2 seconds, in my case, to wait until the wifi client connects), how do I do that with millis?
Specifically, if I use a greater than comparison between actual elapsed time with a desired amount of elapsed time (e.g., 2 seconds), and the comparison fails (i.e., 2 seconds has not yet elapsed), the program continues on to the next lines in loop. This is not what I want to happen. I want the program to just wait a couple of seconds.
How would I do that?