Bridge is sending only 1 data

hey all

i was hoping if you guys can help me with my project. i want to send 2 different things from the 1st esp32 to 2nd one. im sending 2 signals and each signal will turn on/off a specif led. to simplify the problem:

blynk app —> virtual pin 0 of the 1st esp 32 -----> bridge1(V1) ---->turn on/off led on pin 21
blynk app —> virtual pin 3 of the 1st esp 32 -----> bridge2(V2) ---->turn on/off led on pin 5

yesterday it was only working on pin 21. but today when i rewrote the code again its only working on pin 5 and nothing happens to pin 21
this is the code im using for the 1st esp 32

#define BLYNK_PRINT Serial

#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>

char auth[] = "xxxxx";

char ssid[] = "xxxx";
char pass[] = "xxxxx";
WidgetBridge bridge1(V1);
WidgetBridge bridge2(V2);
int x= 21;
int y = 5;
  int x = param.asInt();
  if (x == HIGH){
    bridge1.digitalWrite(21, HIGH);
  else {
    bridge1.digitalWrite(21, LOW);
  int y = param.asInt();
  if (y==HIGH){
  else {
    bridge2.digitalWrite(5, LOW);

void setup()
  // Debug console

  Blynk.begin(auth, ssid, pass);


void loop()


for the 2nd esp im using the wifi example and only changed authtoken and wifi ssid and pass.

note: sorry english is my second language

You have two separate Bridge defines, but you only set-up the one with the AUTH

Besides… you only need one, just use separate bridgeX._____ commands to different target digital or vPins as needed.

it worked

thank you for the help