I want to make a ESP32 Sensor Network (one TCP/UDP server and multiple connected clients).
Please tell me how to send a command from the server to clients using MEGUNOLINK library?
I want something like :
Server side command :
GET TEMPERATURE FROM : SENSOR1 from ESP321
GET TEMPERATURE FROM : SENSOR99 from ESP3299
And on the client side
SEND TEMPERATURE TO SERVER FROM : SENSOR1 from ESP321
SEND TEMPERATURE TO SERVER FROM : SENSOR99 from ESP3299
And when specified value is reached, SERVER must send a command to one of the clients to power on a fan or a relay on the client side.
I need bidirectional communication between SERVER and CLIENTS and the possibility to send commands from SERVER to CLIENTS and from CLIENTS to server.
Can you help me please ?
Thank You !