Extra 5% OFF Use Code: OL05
Free Shipping over ₹999

esp32 wi-fi

ESP32 Client-Server Wi-Fi Communication Between Two Boards

This guide helps you make two ESP32 boards talk to each other over Wi-Fi without needing the internet. Think of it like sending messages between two walkie-talkies. We’ll use HTTP, a way for computers to share data, and program the ESP32 boards using the Arduino software. It’s like teaching them a secret language to chat with each other!

Overview


Sure, here’s a simplified version with bullet points:

  • One ESP32 board is like a host (server), and the other is like a guest (client).
  • The server ESP32 creates its own Wi-Fi network called “ESP32-Access-Point” with the password “123456789”.
  • The client ESP32 joins this network to talk to the server.
  • The client can ask the server for information by making HTTP requests. It just needs to know the server’s IP address and where to send the request.
  • The server is always listening for requests. When it gets one, it sends back the information the client asked for.
  • The client gets the information and displays it on its OLED display.

Installing Libraries

To follow along with this tutorial, you’ll need to install two libraries:

  1. ESPAsyncWebServer library: This library helps handle HTTP requests asynchronously. You can download it from here.
  2. Async TCP library: This library is used for asynchronous TCP communication. You can download it from here.

Since these libraries aren’t available through the Library Manager, you’ll need to manually install them. Here’s how:

  • Download the libraries from the links provided.
  • Unzip the downloaded files.
  • Move the unzipped folders to your Arduino IDE installation libraries folder.
  • Alternatively, you can go to Sketch > Include Library > Add .ZIP library… in the Arduino IDE, and select the downloaded libraries.

    Leave a Reply

    Your email address will not be published.

    Need Help?