ESP-12E multiprocessing

I'm thinking of using a value from a database to control which loop is running (that way I can easily control remotely), but I'm not sure how to read data while a loop is running, I can only think of ways which first have to wait for the loop to end in order to do what I want.

Is multiprocessing really necessary in this case?

You are not providing us with a lot of information. If you 'poll' the database during the loop, would that work ?

Is multiprocessing really necessary in this case?

Take a look at Using millis() for timing. A beginners guide, Several things at the same time and the BlinkWithoutDelay example in the IDE

Take a look at my tutorial on Multi-tasking in Arduino, it may give you some ideas.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.