Files
esphome/tests/components/udp/test.host.yaml
T
0b6856c052 [udp] Add IPv6 unicast and multicast (#20590)
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2026-10-12 11:17:58 -10:00

21 lines
563 B
YAML

udp:
id: my_udp
listen_address: 239.0.60.53
addresses: ["239.0.60.53"]
on_receive:
- logger.log:
format: "Received %zu bytes"
args: [data.size()]
- udp.write:
id: my_udp
data: "hello world"
- udp.write:
id: my_udp
data: !lambda |-
return std::vector<uint8_t>{1,3,4,5,6};
# Short forms without id: valid while there is a single udp instance
- udp.write:
data: [0x01, 0x02, 0x03]
- udp.write: !lambda |-
return std::vector<uint8_t>(data.begin(), data.end());