aZholtikov / ZHNetwork

ESP-NOW based Mesh network for ESP8266/ESP32.
MIT License
40 stars 9 forks source link

Can I use delay() #3

Closed crouse12 closed 1 year ago

crouse12 commented 1 year ago

When I use delay() to replace millis(), the program cannot work. Is it possible for us to use delay()?

aZholtikov commented 1 year ago

No. These are completely different functions.

millis() simply counts down the time from the start of the program. delay() stops it for the specified time.

crouse12 commented 1 year ago

Thank for your response. Second question: Is it possible for us to use mqtt or web server when I use this esp-now library?

aZholtikov commented 1 year ago

Of course. For an example, see https://github.com/aZholtikov/ESP-NOW-Gateway