Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Report UART status as events; addl UART events#129

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
flaviut wants to merge1 commit intowokwi:main
base:main
Choose a base branch
Loading
fromflaviut:uart-events

Conversation

@flaviut
Copy link

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 oftrouble & setTimeouts.
@flaviut
Copy link
Author

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 freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@flaviut

[8]ページ先頭

©2009-2025 Movatter.jp