Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Write support and bring your own uart #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

solarkennedy
Copy link
Contributor

This adds a couple of things that are hard to untangle into different pull requests.

  1. Adds bring your own uart

For my use case I wanted to watch the serial port from another device, not the serial port that happened to be on the esp32 that esphome was using for logging (which I would like to keep). This makes the configuration a little harder for the normal case, but it is more explicit.

  1. Added write support

I wanted to be able to log into my other remote device, so I added write support

  1. Added multi-support

I want to be able to have multiple of these, like a serial console server. Only MULTI_CONF = True was required to make this happen, once the uart_id was ready.

This also removes the Arduino'ism for serial, as we are depending on ESPhome's uart code, which is kinda cool. Should work on any controller supported by ESPHome and any framework with this PR.


Note that I'll rebase this if/after the other PRs are merged.

This adds a couple of things that are hard to untangle into different
pull requests.

1. Adds bring your own uart

For my use case I wanted to watch the serial port from another device,
_not_ the serial port that happened to be on the esp32 that esphome was
using for logging (which I would like to keep). This makes the
configuration a little harder for the normal case, but it is more
explicit.

2. Added write support

I wanted to be able to log into my other remote device, so I added write
support

3. Added multi-support

I want to be able to have multiple of these, like a serial console
server. Only `MULTI_CONF = True` was required to make this happen, once
the `uart_id` was ready.

This also removes the Arduino'ism for serial, as we are depending on
ESPhome's uart code, which is kinda cool. Should work on any controller
supported by ESPHome and any framework with this PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant