mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-25 13:13:48 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			392 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			392 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| wifi:
 | |
|   ssid: MySSID
 | |
|   password: password1
 | |
| 
 | |
| udp:
 | |
|   id: my_udp
 | |
|   listen_address: 239.0.60.53
 | |
|   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};
 |