I’m trying to implement a few things on a ESP8266: the weather station from thingpulse, getting readings from a BME280 sensor and receiving data from a a Arduino nano, which separately all works great, but I found out that when I put all toghether, something is goiong on with the delay, for example getting problems with the serial comunication and not receiving properly the info, and same thing happens with the WIFI waiting time and the readings from the BME280.
So my question is How do I should treat this delay that every one needs ???
You should not use delay() unless it is absolutely necessary. Study the "Blink Without Delay" example to learn how to avoid doing so.
Great tutorial at Blink without delay() explained line-by-line
Jremington, thank you for your fast reply. Love when you teach me to fish. Looking and learning on the link/tutorial provided.
The demo Several Things at a Time illustrates the use of millis() to manage timing without blocking. It may help with understanding the technique.
Have a look at Using millis() for timing. A beginners guide if you need more explanation.