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

Update sample #15

Open
jishindev opened this issue Apr 19, 2018 · 3 comments
Open

Update sample #15

jishindev opened this issue Apr 19, 2018 · 3 comments

Comments

@jishindev
Copy link

Hi again @LouisCAD, Would be great if you could spare some time to update the sample android application with examples to read and write characteristics and descriptors and also notifications within the same sample repo.

@LouisCAD
Copy link
Collaborator

Hi @jishindev,
We didn't do so yet because we would need to have a server BLE device that respects a contract that the client device (and app) would expect, and there's a lot of variety of BLE devices.

However, Android allows to open a GATT server, so here's what's possible:

  • Optionally make a library module for GATT server to play well with coroutines.
  • Make a GATT server in the sample-common module that implements most (or all) BLE operations, including notifications.
  • Allow the mobile and wear sample apps to be used as a GATT server
  • Make the GATT client part of the sample apps use this GATT server to showcase using BLE features.

Ideas are welcome, contribution is too, but discussion is needed first in order to get it right 😃

@jishindev
Copy link
Author

Valid point. But for now, may be we could have the example implementation mentioned here just to start with.

@LouisCAD
Copy link
Collaborator

Yeah, it'd be a good start. PR welcome. Implementation is expected in the sample-common module, in dedicated package(s)

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