Page 1 of 1

Server Esp32 with lcd

Posted: Sat Dec 21, 2019 7:24 pm
by jakub51996
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.

Re: Server Esp32 with lcd

Posted: Mon Dec 23, 2019 3:38 am
by ESP_Sprite
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.

Re: Server Esp32 with lcd

Posted: Mon Dec 23, 2019 9:45 am
by pipi61
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...