An example of creating and updating a simple GATT Service using the BLE_API
Dependencies: BLE_API mbed nRF51822 X_NUCLEO_IDB0XA1
This example creates and updates a standard Battery Level service, and a single GATT characteristic that contains the battery level.
mbed_app.json@19:1e34f137b7ce, 2016-09-20 (annotated)
- Committer:
- Vincent Coubard
- Date:
- Tue Sep 20 12:27:09 2016 +0100
- Revision:
- 19:1e34f137b7ce
Update libraries, add support for ST shield.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Vincent Coubard |
19:1e34f137b7ce | 1 | { |
Vincent Coubard |
19:1e34f137b7ce | 2 | "target_overrides": { |
Vincent Coubard |
19:1e34f137b7ce | 3 | "K64F": { |
Vincent Coubard |
19:1e34f137b7ce | 4 | "target.features_add": ["BLE"], |
Vincent Coubard |
19:1e34f137b7ce | 5 | "target.extra_labels_add": ["ST_BLUENRG"], |
Vincent Coubard |
19:1e34f137b7ce | 6 | "target.macros_add": ["IDB0XA1_D13_PATCH"] |
Vincent Coubard |
19:1e34f137b7ce | 7 | }, |
Vincent Coubard |
19:1e34f137b7ce | 8 | "NUCLEO_F401RE": { |
Vincent Coubard |
19:1e34f137b7ce | 9 | "target.features_add": ["BLE"], |
Vincent Coubard |
19:1e34f137b7ce | 10 | "target.extra_labels_add": ["ST_BLUENRG"] |
Vincent Coubard |
19:1e34f137b7ce | 11 | } |
Vincent Coubard |
19:1e34f137b7ce | 12 | } |
Vincent Coubard |
19:1e34f137b7ce | 13 | } |