
Here’s a detailed tutorial on how to make two ESP8266 talk with each other from Rui Santos:
How it works? You’re going to set one ESP as an Access Point (Server) and another ESP as a Station (Client). Then they’ll establish a wireless communication and the Client sends a message to the Server saying “Hello World!”.
Project info at Rui’s Random Nerd Tutorials site.

hello
I would like to ask you a question and I hope you will answer.
I am developing a project to turn on a led connected to an esp8266 with a button connected to another esp8266.
could you help me?
thank you so much
I look forward to your kind reply.