How to simulate a button push

Hi,
I need to simulate a smartphone button push from another hardware.

The main system run on an ESP12 and is connected to my smartphone with the app where I can push the button.

I have another hardware based on ESP01 and connected to a physical push button.
When I push this button, I would like to run the code on ESP12 exactly as if I push the button on the smartphone.
do you have any ideas ?
thnx

Are you talking about a button widget in Blynk?
You don’t mention Blynk at all, let alone providing the sort of information that was requested when you initially created this topic, or saying which version of Blynk you are using, so it’s really not very clear.

Pete.