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

Feature/improve existing methods #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bsc2fast
Copy link
Collaborator

@bsc2fast bsc2fast commented Dec 5, 2021

No description provided.

if(isConnected){
return usbDevice.getProductName();
} else {
return "";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it's good to return some message or error instead of empty string

public boolean isSensorOnline(String sensorName){
return sensorStatus.get(sensorName);
}

public boolean isHumidityOnline() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These getters seem a bit redundant now that we have a more generic accessor. I guess they could still be useful.. probably good to clarify in README

QueueReader queueReader;

private QueueWriter queueWriter;
private QueueReader queueReader;

public KiwriousCallback SensorConnected;
Copy link
Member

@hsur753 hsur753 Dec 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defined but never used. Currently this would be dead code since we don't yet refer the callback function in our Usb Serial code. Maybe we hide this for now?

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.

2 participants