Server Esp32 with lcd

jakub51996
Posts: 1
Joined: Sat Dec 21, 2019 7:07 pm

Server Esp32 with lcd

Postby jakub51996 » Sat Dec 21, 2019 7:24 pm

Hi I from Poland. Sorry, my English isn't very good.
I want to make a server that displays results on the display lcd.
I have 2 clients who send temperature and humidity.
But I don't know how to recognize which client sent and whether it is temperature or humidity. I use tcp server.

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Server Esp32 with lcd

Postby ESP_Sprite » Mon Dec 23, 2019 3:38 am

The simple solution would be to have each server also send an unique identifier alongside the temperature and humidity so you can recognize which one it is.

pipi61
Posts: 60
Joined: Fri Dec 23, 2016 10:58 pm

Re: Server Esp32 with lcd

Postby pipi61 » Mon Dec 23, 2019 9:45 am

Hi!
I think the other way around.
The central unit with LCD works in (TCP or UDP) client mode, and slave units with sensors work in server mode.
The central unit periodically asks the slave units, and shows the data on the screen.
The wifi mode STA for all units if use router,
if works without the router, then the central unit in wifi AP mode, and the slave unit in STA mode.
I recommend...

Who is online

Users browsing this forum: No registered users and 64 guests