pio2398 / W4G2

GNU General Public License v3.0
2 stars 0 forks source link

ESPHome config question #1

Open stigory opened 1 month ago

stigory commented 1 month ago
  - lambda: |-
      UARTDebug::log_hex(direction, bytes, ' ');

Is this correct syntax?

pio2398 commented 1 month ago

I think so. I am using this config for uart:

uart:
  id: mod_bus
  tx_pin: PA23
  rx_pin: PA18
  baud_rate: 9600
  debug:
    direction: BOTH
    dummy_receiver: true
    after:
      delimiter: [0xF4, 0xFB]
    sequence:
      - lambda: |-
          UARTDebug::log_hex(direction, bytes, ' '); //log the data

Although, all after debug is not required. Just that should give more useful logs for debugging.