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

Forward the entire PSU Status struct #3

Open
JackNewman12 opened this issue Jan 10, 2021 · 1 comment
Open

Forward the entire PSU Status struct #3

JackNewman12 opened this issue Jan 10, 2021 · 1 comment

Comments

@JackNewman12
Copy link
Owner

JackNewman12 commented Jan 10, 2021

Should be very simple to import the entire Status from the Ka3005p driver:
{"voltage":0.0, "current":0.0, "power":false}
to
{"voltage":0.0, "current":0.0, "channel1": "CV","channel2": "CV","beep": "On","lock": Unlocked,"output": "On"}

Note this ticket doesn't involve updating the web interface to show all this data. (Is this extra data even useful for the user?)
This is simply so we don't have to redefine the state struct ourselves.

@JackNewman12
Copy link
Owner Author

Ehh actually this would be way easier if the ka3005p library added Derive(Debug, Serialize) to the status structure. Although we would still need to add some sort of LastUpdateFailed flag.

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