Blynk software Serial

Hi,
Is there a way, to control a blynk push button by sending a serial command. For ex: when sending {Serial.write(“k”); } turns on push button V2 .

Any help appreciated. Thanks

Send from which serial device to which serial device?

From an arduino to blynk server

Maybe @Pavel knows

You can connect your arduino via usb, and call:
Blynk.virtualWrite(V1, 0);
Blynk.virtualWrite(V1, 1);
where V1 is virtual pin of your button widget.
It will change state

Sorry but i didnt understand

You want to use the serial input to make changes? Easy… just monitor Serial.available() in the loop and parse the info, then use the to change button states.

Can you tell me how to write it in arduino pls? Because im not a good coder

That isn’t easy. Remember That you use digitalWrite(pin,HIGH); to turn on an led and digitalWrite(pin,LOW);to turn it back off? Virtual Pins Work the same, but uses Blynk.virtualWrite instead of digitalWrite. It’s just that, nothing else to do. Easy.

Thanks a lot for your help