Skip to content

Blynk — serve communication (blynk_run)

What it does: Performs one Blynk client service step (blynk.run()) and briefly sleeps the CPU.

blynk_run

Inputs

  • No data inputs.

Output

  • None (statement block).

When to use it

  • Repeatedly in the main loop of the program.
  • After blocks blynk_connect, blynk_write and when reading virtual pins.

Tips and pitfalls

  • If you call blynk_run infrequently, the dashboard will respond slowly or disconnect.
  • Avoid long blocking operations between calls.

Generated Python example

blynk.run()
utime.sleep_ms(50)