Closed nagyrobi closed 1 year ago
Sending is only half the battle (and the easier half), listening and reading in a loop are the parts that are considerably more work and not present. Specifically, esp-idf does not have the arduino equivalent of beginMulticast
esp-idf support will come eventually, it's just not immediately. This component works fine on ESP32 with the arduino framework for the time being.
This component works fine on ESP32 with the arduino framework for the time being.
The only real reason for IDF is that beside better performance, there are IDF-only components one wants to use on the same node.
I'm aware of that, but for now they remain unsupported and on the todo list.
I don't know much about esp development, but would this help supporting the unsupported part? https://github.com/espressif/esp-idf/blob/master/examples/protocols/sockets/udp_multicast/main/udp_multicast_example_main.c there is some short description https://github.com/espressif/esp-idf/tree/master/examples/protocols/sockets/udp_multicast
but I don't know if this would automatically be compatible with esphome
Yes, I'm aware of the esp-idf examples. It definitely needs a wrapper at minimum, and I haven't had the time/priority to look into it further yet.
But how about just simply broadcast to the entire local network (send the udp packet to just 255.255.255.255)? Or maybe to a configurable target node only?