Erro no loop

Eu estou com um problema no meu loop, preciso chamar uma funçao para realizar o ativamento atraves de um push button e ao msm tempo preciso chamar o blynk.run para ativar o mesmo pelo aplicativo

Either use an interrupt on your physical switch (probably with some debounce code as well) or use a timer to check the switch.

Pete.

Would you have an example to show me? I’m a beginner

There are examples of how to use a timer in the “keep your void loop clean” document I linked to.

If you want examples of using interrupts then tell us what hardware you’re using.

Pete.

ESP 32 the hardware

I’ve never used an ESP32, so I can’t help with the use of interrupts I’m afraid. I could google it and tell you what I find, but it’s probably easier if you do that yourself.

Pete.