ESP8266 Control

I'm seeing plenty of information online about the ESP8266 being controlled via smartphone. Is there a way to send a pushbutton message through the WIFI to a digital output on another board such as an LED (supposing I'm using 2 8266's). OR am I completely off track and using the wrong method?

CHARH:
I'm seeing plenty of information online about the ESP8266 being controlled via smartphone. Is there a way to send a pushbutton message through the WIFI to a digital output on another board such as an LED (supposing I'm using 2 8266's). OR am I completely off track and using the wrong method?

is this what you are asking?

hope that helps

what was wrong with the answer you received to the same question before?
https://forum.arduino.cc/index.php?topic=664176.msg4473783#msg4473783

If you don't know how to do it, there is no point in repeating the question.

Threads merged.