robertnash30 wrote:gerardwr wrote:I suppose it works when you start a separate UDP-server and UDP-browser on your Windows, right?
I seem to be able to get it to work with a python programme with bi-directional communication although I might be misunderstanding you. This code below sends "on" every two seconds and I can see the reply("light on") from the ESP being printed by the programme every two seconds as well.
Your Python script works on my Mac too, and works as you described. The "light on" reply is received by the Python script.
I principle the hardcoded IP and Port number in the sketch could be replaced by the remoteIP() and remotePort() of the UDP class. Going to try that later, will report back.
Thanks!