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

Report UART status as events; addl UART events #129

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

Conversation

flaviut
Copy link

@flaviut flaviut commented Jun 26, 2023

This is more flexible & allows for multiple listeners.

The new events allow the user to push data to the UART without a ton of trouble & setTimeouts.

This does introduce a new dependency, eventemitter3. This is not really needed for Node, but it is needed on the browser since the browser's events implementation is different than in Node.

This is more flexible & allows for multiple listeners.

The new events allow the user to push data to the UART without a ton of
trouble & setTimeouts.
@flaviut
Copy link
Author

flaviut commented Jun 26, 2023

I guess this is really two proposals in one?

  • Using EventEmitter for callbacks, rather than a manually-assigned field
  • Adding additional event listeners to the UART

I'd be interested to hear what you think of them, and if you think this is a good direction to go in at all.

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.

None yet

1 participant