0

I have 2 functions in my code. BLYNK_WRITE(V1) checks if there is the signal from Blynk server. loop() check if there is the signal from RFID. Both will lead to the same resault. Can I set 2 conditions at the same time in flow chat as the below photo? Or I must set 2 conditions in order of first to last?

BLYNK_WRITE(V1)
{
  if (param.asInt() == 1)
    Unlock();
}

void loop()
{
  ...
}

enter image description here

Haru
  • 71
  • 5
  • you put `Blynk.run();` into `loop()`. `BLYNK_WRITE` is executed from `Blynk.run();` if the cloud sends the command – Juraj Oct 15 '22 at 17:00

0 Answers0