I am successfully using unicast udp to speak to a single device, but since this requires a “target” ip this is less than ideal. The receiving devices will use dhcp and I do not want to have to do address reservations in my router or do static ip in the receivers.
I’ve tried multicast udp, but cannot gets receivers to hear commands on the multicast IP address. They still only receive to the esp actual up address (Wi-Fi.localIP()).
If I understand correctly two esp can not communicate with each other using mdns, although that would work nicely if I were sending from a computer.
Are there other protocol options available that I have not thought of? I do not want to have to reprogram the remote with a new udp target up every time the receivers get a new ip assignment from my router.
Ideally, multicast udp would have been perfect. I could point a single remote to multiple receivers using the multicast IP address and let them process only the commands pertinent to them, using if statements.
Thanks for any thoughts and help.