Adafruit is open, safely ... and shipping all orders at this time! Read more!

Data of 5 ESP32 to Computer (WIFI)
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Data of 5 ESP32 to Computer (WIFI)

by pluesss on Wed Jun 12, 2019 10:08 am


I have 5 Adafruit ESP32 Modules, each one is collecting data of different Sensors.
My goal is to get all the data on a computer in the same network.

For now, I connect all ESP32 Modules as clients to the same network (Linksys Router without Internetconnection).
On the computer I have a software (in Labview) which opens a TCP Server and port. This is all working as long as my computer always has the same IP-Address.

However, it could be possible that another computer(with another IP-address) wants to read the data. (It's only one computer at the time... )
But as I had to enter the IP-Adresse within my ESP32 Arduino Code, I would have to change the code on each ESP32 everytime I want to use another computer (or change the IP-reservation within the router for the computer, which is annoying...)

There are always only 6 devices (5ESP and 1 Computer) in the network. Is it somehow possible, that the ESP32 modules scan the network and get the IP-Address of the computer by themselves?
Or is there another better way to do that?
As it is a "real-time" system, it should be possible of reading 50bytes with 100Hz from each ESP32.(I could increase the packet size to reduce the 100Hz).

I hope you can understand my problem... i probably described it too complicated ;)

Best regards

Posts: 28
Joined: Fri Apr 15, 2011 10:45 am

Re: Data of 5 ESP32 to Computer (WIFI)

by siddacious on Fri Jun 14, 2019 2:21 pm

Hi pluesss, you described your problem well.

The simplest way to do this would be to give the esp modules a list of possible addresses or partial addresses to match against, and then have them make requests to the addresses given until they receive the expected response.

Alternatively assuming the esp32 knows its own address, you can have it make requests to other machines in the same subnet until it finds the response.

So if the esp32's address was, it would make requests to until it found a response.

There are other approaches you could take but there are a few ideas.

Posts: 243
Joined: Fri Apr 21, 2017 3:09 pm

Please be positive and constructive with your questions and comments.