I am new to ESP8266 and so far have been able to write simple code for a TCP communication.
What I am looking for is a java program in my laptop running Ubuntu be able to send a UDP packet through broadcast/multicast and the ESP, connected to the same WiFi network, be able to receive the packet and reply with another datagram, resulting in discovery.
I have googled a lot and none of them lead to somewhere concrete.
I am leaning a bit more on the raw C code, without Arduino library or NodeMCU (as far as I know exist).
It will be extremely helpful if you just give me the basic code structure.
Thanks a lot in advance
Regards,
Suhel