Skip to content

Commit

Permalink
Simplify yaml config
Browse files Browse the repository at this point in the history
  • Loading branch information
syssi committed Mar 2, 2022
1 parent a76546c commit d5ff278
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
15 changes: 9 additions & 6 deletions esp32-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,24 @@ wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

api:
ota:
logger:

mqtt:
broker: !secret mqtt_host
username: !secret mqtt_username
password: !secret mqtt_password
id: mqtt_client
level: DEBUG
logs:
api.service: WARN
ota: WARN
wifi: WARN
sensor: DEBUG

uart:
id: uart0
baud_rate: 9600
rx_buffer_size: 384
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
debug:
direction: BOTH

jk_modbus:
id: modbus0
Expand Down
16 changes: 9 additions & 7 deletions esp8266-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,25 @@ wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

api:
ota:
logger:
level: INFO
baud_rate: 0

mqtt:
broker: !secret mqtt_host
username: !secret mqtt_username
password: !secret mqtt_password
id: mqtt_client
level: DEBUG
logs:
api.service: WARN
ota: WARN
wifi: WARN
sensor: DEBUG

uart:
id: uart0
baud_rate: 9600
rx_buffer_size: 384
tx_pin: ${tx_pin}
rx_pin: ${rx_pin}
debug:
direction: BOTH

jk_modbus:
id: modbus0
Expand Down

0 comments on commit d5ff278

Please sign in to comment.