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

Changing threading implementation #24

Open
JackNewman12 opened this issue Mar 5, 2021 · 0 comments
Open

Changing threading implementation #24

JackNewman12 opened this issue Mar 5, 2021 · 0 comments

Comments

@JackNewman12
Copy link
Owner

Original feature just splits the database (containing the serial port + current status) and the combines it again once the threads are complete.

Task is to change it so that each thread takes the serial port permanently and pushes the status results to a mpsc. The receiver thread can then push the changes to the status dict (and maybe also trigger a websocket push once its implemented).

This should make it a little easier to recreate serial devices if something goes wrong with them (im looking at you windows) and means we can just poll the PSUs as fast as possible without hurting the web interface speed.

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

No branches or pull requests

1 participant