Https://community.blynk.cc/t/how-can-i-run-blynk-write-in-a-loop/25919/8?u=nacka301

Before creating the topic

  1. Search forum for similar topics
  2. Check http://docs.blynk.cc and http://help.blynk.cc/
  3. Add details :
    • Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
    • Smartphone OS (iOS or Android) + version
    • Blynk server or local server
    • Blynk Library version
    • Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.


void loop()

i have a problem with BLYNK_WRITE function how to call this function in a loop???

You don’t call the BLYNK_WRITE(Vpin) function at all.
It’s triggered automatically whenever the value of the virtual datastream changes on the Blynk server.

If you want to know the current virtual datastream value then you should save it in a public variable so that you can reference it elsewhere in your sketch.

Also, you shouldn’t have anything in your void loop other than…

void loop()
{
  Blynk.run();
  timer.run();
}

Pete.