mirror of
https://github.com/esphome/esphome.git
synced 2025-10-12 14:53:49 +01:00
make udp groupable
This commit is contained in:
@@ -1,4 +1,15 @@
|
|||||||
packages:
|
udp:
|
||||||
common: !include common.yaml
|
id: my_udp
|
||||||
|
listen_address: 239.0.60.53
|
||||||
wifi: !remove
|
addresses: ["239.0.60.53"]
|
||||||
|
on_receive:
|
||||||
|
- logger.log:
|
||||||
|
format: "Received %d 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};
|
||||||
|
Reference in New Issue
Block a user