How to make Socket Server communication between two ESP32?

claytonsulivan
Posts: 2
Joined: Thu Dec 14, 2017 8:15 pm

How to make Socket Server communication between two ESP32?

Postby claytonsulivan » Sun Dec 17, 2017 1:41 am

How to make Socket Server communication between two ESP32?

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: How to make Socket Server communication between two ESP32?

Postby kolban » Mon Dec 18, 2017 11:03 pm

Not quite sure how to address that ... by mentioning sockets, it sounds like you already may be somewhat familiar with the TCP/IP sockets API.

At a high level, imagine you have two ESP32s ... call one "server" and the other "client". Assume that both are WiFi stations and connect to the same WiFi access point. On "server" write and run TCP/IP socket server code and on the "client" write and run TCP/IP socket client code. The client will have to know the IP address of the server.

Let's start with this as a basis of an answer and assume that as you delve deeper, you will have more questions.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Who is online

Users browsing this forum: Baidu [Spider] and 122 guests