This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android: Read characteristic without service discovery

We are writing an Android app for our own peripheral (nRF51-based). We know the handles for all the characteristics.

On Android gatt.discoverServices() needs to be called, and wait for onServicesDiscovered(), then getServices(), before the Characteristic object is available.

This is very time-consuming, and often onServicesDiscovered() does not get called (despite connection success).

Is there a way to directly to write to an attribute handle or a characteristic UUID, bypassing all the discovery steps?

Parents Reply Children
No Data
Related