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.
Server Esp32 with lcd
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: Server Esp32 with lcd
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
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...
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 89 guests