Datasheet
BLEClientService
This base class is used when defining custom BLE Gatt Clients.
Unless you are implementing a custom GATT client service and characteristic, you normally won't use this base class
directly, and would instantiate and call a higher level helper service or characteristic included in the Bluefruit nRF52
API.
Basic Usage
There are normally only threes operations required to use the BLEClientService class:
1.) You need to declare and instantiate the class with an appropriate 16-bit or 128-bit UUID in the constructor:
2.) You then need to call the .begin() method on the instance before adding any BLEClientCharacteristics to it (via the
BLEClientCharacteristic's respective .begin() function call):
3) When connected e.g in connect callback, you should call .discover() to discover the service
API
BLEClientService has the following overall class structure:
The Bluefruit nRF52 Feather codebase is in an early BETA stage and is undergoing active development
based on customer feedback and testing. As such, the class documentation here is incomplete, and you
should consult the Github repo for the latest code and API developments: https://goo.gl/LdEx62
BLEClientService myService = BLEService(0x1234);
myService.begin();
myService.discover();
This documentation may be slightly out of date as bugs are fixed, and the API develops. You should always
consult the Github repo for the definitive latest code release and class definitions!
© Adafruit Industries https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide Page 112 of 175