mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 11:26:39 +00:00
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
21 lines
400 B
YAML
21 lines
400 B
YAML
wifi:
|
|
ssid: MySSID
|
|
password: password1
|
|
|
|
tcp_uart:
|
|
- id: tcp_uart_1
|
|
host: 192.0.2.10
|
|
port: 502
|
|
reconnect_interval: 10s
|
|
connected:
|
|
name: TCP UART Connected
|
|
|
|
interval:
|
|
- interval: 60s
|
|
then:
|
|
- lambda: |-
|
|
uint8_t byte;
|
|
if (id(tcp_uart_1).available() && id(tcp_uart_1).read_byte(&byte)) {
|
|
id(tcp_uart_1).write_byte(byte);
|
|
}
|