One ESP32 as Master and several as client - how to transfer data...

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
netsrac
Posts: 17
Joined: Sun Jun 07, 2020 7:19 pm
Location: Berlin, Germany

One ESP32 as Master and several as client - how to transfer data...

Post by netsrac » Sun Jun 07, 2020 7:25 pm

Hi,

Before I start to implement everything from scratch. What is the easiest way to do the following:

I want to run one ESP32 (with MicroPython) that serves as a server. This device has a display and should show temperature (and other values) send to him by some clients.

The clients itself are also based on ESP32 and measure the temperature, send it over to the server and then go into deepsleep for some time.

So what’s the best way for the communication. Should I go the web server/client approach? Or are there any other ways?

Anybody know of any sample code and/or tutorials which does exactly what I would like to do?

Thanks, Carsten

JeroenH
Posts: 9
Joined: Sat May 23, 2020 8:19 am

Re: One ESP32 as Master and several as client - how to transfer data...

Post by JeroenH » Tue Aug 11, 2020 12:30 pm

MQTT sounds like a good option. I'm building something that sounds similar to your project. I want to have ESP32-based temperature/relative humidity/PIR sensors in all the rooms, each with their own small OLED display.

The living room unit will have an ESP32 connected to a larger LCD (or maybe an e-ink display), to display the information from the other rooms. Also, my Raspberry Pi which runs an MQTT broker (Mosquitto) also runs a python script that collects information from several APIs (weather, our solar panel power production) and publishes that information as MQTT messages. The living room unit can then display that information.

Post Reply