-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
Conversation
if(isConnected){ | ||
return usbDevice.getProductName(); | ||
} else { | ||
return ""; |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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?
No description provided.