Code: C / C++
I can, using the above commands, send a reply back to the sender. In the above case, that message would be " return text1 ".
What I don't know is how to initiate sending a message via wifi to a specific IP address.
Let's say I want to send "perform_task_1" to a device with address 192.168.0.99, something like:
192.168.0.99/wykonaj_zadanie_1
Normally I do this in reverse order by sending something like this to the ESP32 and in response I use client.println(); ( WiFiClient), but now I'd like to do it the other way around, on the principle that the ESP32 sends a message and receives an acknowledgement