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

Add a helper for retrieving data from byte[] #199

Closed
dariuszseweryn opened this issue May 25, 2017 · 1 comment
Closed

Add a helper for retrieving data from byte[] #199

dariuszseweryn opened this issue May 25, 2017 · 1 comment
Assignees
Milestone

Comments

@dariuszseweryn
Copy link
Owner

Summary


The `BluetoothGattCharacteristic` has methods like `getIntValue()`, `getFloatValue()` and `getStringValue`. Provide a helper for retrieving that data from `byte[]` emitted by `.readCharacteristic()` or notifications.
@dariuszseweryn dariuszseweryn added this to the 1.3.0 milestone May 25, 2017
@dariuszseweryn dariuszseweryn self-assigned this May 25, 2017
dariuszseweryn added a commit that referenced this issue May 25, 2017
…t/String) value intepretation code from `BluetoothGattCharacteristic`. Adjusted Readme and Changelog.

Summary: #199

Reviewers: pawel.urban

Reviewed By: pawel.urban

Subscribers: mikolaj.kojdecki

Differential Revision: https://phabricator.polidea.com/D2371
@RobLewis
Copy link

I use the standard Java class ByteBuffer: it wraps a byte[] and does exactly this.

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

2 participants