Communication between two esp32 using two device in Blynk

I need emergency help for my project.

I am trying to use two esp32(say A and B) for my project bridged via Blynk. My goal is :
Esp32A will read data from the sensor attached to it and based on the value exceeding threshold ,it will update the value of a virtual pin and the data will be forwared to esp32B which will control Led.

so under same template.i created two devices(diff auth token) and created virtual pin “V5”. For device-A, i made an automation(if value=1) , “forward data path” to the virtual pin of v5 of device B. (also another for value=0)

then when i upload two code to two esp32, i find that the ** latest connected “device” is showed “online” but previously connected device gets offline.** As a result. i am not being able to run both device at the same time. so even if deviceA v5 values updates,no automation occurs to deviceB.

Please help me to solve this. If needed. i can upload my code.

My guess is that you’ve used the same auth token in both of your sketches, because this is the type of symptom you’d see if you had two devices sharing the same auth token.

Also, I’d use different templates, as the devices perform different functions, and I’d also use different virtual pin numbers to reduce the risk of confusion.

Pete.