In this project you’re going to make two ESP8266 talk with each other.
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!”.
Before continue reading this project, please complete the following tutorials:
If you like the ESP and you want to do more projects you can read my eBook Home Automation using ESP8266 here. Let’s get started!
Here’s the hardware that you need to complete this project:The schematics for this project are very straight forward. You only need to establish a serial communication between your FTDI programmer and your ESP8266 to upload some code. (Repeat the schematics below for the Client and Server)I recommend using the ESPlorer program created by 4refr0nt to create and save Lua files into your ESP8266.
Don’t forget that first you need to flash both your ESPs with NodeMCU firmare. Copy and paste the code below into ESPlorer.
Summary: The ESP Server acts as an Access Point and it has its own SSID=test and Password=12345678. The server is continuously listening for a connection, when it successfully establishes a connection and receives a message prints that string on the serial monitor.
Having your ESP flashed with NodeMCU. Copy and paste the code below into ESPlorer. Summary: The ESP Client acts as a Station and it is continuously looking for an Access Point. When the Client finds the Server establishes a communication and sends a message “Hello World!” every 5 seconds.
For more detail: How to Make Two ESP8266 Talk
Current Project / Post can also be found using:
- how to make two esp8266 talk