소스 검색

Add README

Oxan van Leeuwen 4 년 전
부모
커밋
8477af8765
2개의 변경된 파일32개의 추가작업 그리고 14개의 파일을 삭제
  1. 32 0
      README.md
  2. 0 14
      module.yaml

+ 32 - 0
README.md

@@ -0,0 +1,32 @@
+Stream server for ESPHome
+=========================
+
+Custom component for ESPHome to expose a UART stream over WiFi or Ethernet. Can be used as a serial-to-wifi bridge as
+known from ESPLink or ser2net by using ESPHome.
+
+This component creates a TCP server listening on port 6638 (by default), and relays all data between the connected
+clients and the serial port. It doesn't support any control sequences, telnet options or RFC 2217, just raw data.
+
+Usage
+-----
+
+Requires ESPHome v1.18.0 or higher.
+
+```yaml
+external_components:
+  - source: github://oxan/esphome-stream-server
+
+stream_server:
+```
+
+You can set the UART ID and port to be used under the `stream_server` component.
+
+```yaml
+uart:
+   id: uart_bus
+   # add further configuration for the UART here
+
+stream_server:
+   uart_id: uart_bus
+   port: 1234
+```

+ 0 - 14
module.yaml

@@ -1,14 +0,0 @@
-esphome:
-  # ...
-  includes:
-    - stream_server.h
-    - stream_server.cpp
-
-uart:
-  id: uart_bus
-  #  ...
-  
-custom_component:
-  - lambda: |-
-      auto stream_server = new StreamServerComponent(id(uart_bus));
-      return {stream_server};