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

Unify Command and Operation status codes. #13

Open
mihakrajnc opened this issue Apr 18, 2017 · 0 comments
Open

Unify Command and Operation status codes. #13

mihakrajnc opened this issue Apr 18, 2017 · 0 comments
Milestone

Comments

@mihakrajnc
Copy link
Contributor

We need to unify status codes that get return in status listeners (OperationObserver, CommandResult...), and use those status codes in all public calls.

Something like:

@IntDef({CommandStatus.SERVICE_NOT_FOUND, CommandStatus.CHARACTERISTIC_NOT_FOUND, CommandStatus.DESCRIPTOR_NOT_FOUND})
public @interface CommandStatus {
    int SERVICE_NOT_FOUND = 0;
    int CHARACTERISTIC_NOT_FOUND = 1;
    int DESCRIPTOR_NOT_FOUND = 2;
}
@mihakrajnc mihakrajnc added this to the 1.0 milestone Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant