mbed-os-examples
/
mbed-os-example-ble-GattClient
This application demonstrates detailed uses of the GattClient APIs.
README.md@0:ad9793cc5249, 2018-08-14 (annotated)
- Committer:
- Donatien Garnier
- Date:
- Tue Aug 14 15:15:59 2018 +0100
- Revision:
- 0:ad9793cc5249
Import from revision 042601d73920f2b45e50509ebb96abd6365dc1b6
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Donatien Garnier |
0:ad9793cc5249 | 1 | # BLE Gatt Client example |
Donatien Garnier |
0:ad9793cc5249 | 2 | |
Donatien Garnier |
0:ad9793cc5249 | 3 | This application demonstrates detailed uses of the GattClient APIs. |
Donatien Garnier |
0:ad9793cc5249 | 4 | |
Donatien Garnier |
0:ad9793cc5249 | 5 | When the application is started it advertises itself to its environment with the |
Donatien Garnier |
0:ad9793cc5249 | 6 | device name `GattClient`. Once you have connected to the device with your mobile |
Donatien Garnier |
0:ad9793cc5249 | 7 | phone, the application starts a discovery of the GATT server exposed by your |
Donatien Garnier |
0:ad9793cc5249 | 8 | mobile phone. |
Donatien Garnier |
0:ad9793cc5249 | 9 | |
Donatien Garnier |
0:ad9793cc5249 | 10 | After the discovery, this application reads the value of the characteristics |
Donatien Garnier |
0:ad9793cc5249 | 11 | discovered and subscribes to the characteristics emitting notifications or |
Donatien Garnier |
0:ad9793cc5249 | 12 | indications. |
Donatien Garnier |
0:ad9793cc5249 | 13 | |
Donatien Garnier |
0:ad9793cc5249 | 14 | The device prints the value of any indication or notification received from the |
Donatien Garnier |
0:ad9793cc5249 | 15 | mobile phone. |
Donatien Garnier |
0:ad9793cc5249 | 16 | |
Donatien Garnier |
0:ad9793cc5249 | 17 | # Running the application |
Donatien Garnier |
0:ad9793cc5249 | 18 | |
Donatien Garnier |
0:ad9793cc5249 | 19 | ## Requirements |
Donatien Garnier |
0:ad9793cc5249 | 20 | |
Donatien Garnier |
0:ad9793cc5249 | 21 | You may use a generic BLE scanners: |
Donatien Garnier |
0:ad9793cc5249 | 22 | |
Donatien Garnier |
0:ad9793cc5249 | 23 | - [nRF Master Control Panel](https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp) for Android. |
Donatien Garnier |
0:ad9793cc5249 | 24 | |
Donatien Garnier |
0:ad9793cc5249 | 25 | - [LightBlue](https://itunes.apple.com/gb/app/lightblue-bluetooth-low-energy/id557428110?mt=8) for iPhone. |
Donatien Garnier |
0:ad9793cc5249 | 26 | |
Donatien Garnier |
0:ad9793cc5249 | 27 | Hardware requirements are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md). |
Donatien Garnier |
0:ad9793cc5249 | 28 | |
Donatien Garnier |
0:ad9793cc5249 | 29 | ## Building instructions |
Donatien Garnier |
0:ad9793cc5249 | 30 | |
Donatien Garnier |
0:ad9793cc5249 | 31 | Building instructions for all samples are in the [main readme](https://github.com/ARMmbed/mbed-os-example-ble/blob/master/README.md). |
Donatien Garnier |
0:ad9793cc5249 | 32 | |
Donatien Garnier |
0:ad9793cc5249 | 33 |