
Simple example to demonstrate custom made BLE service and characteristics.
Fork of BLE_GATT_Example by
Revision 5:d0548c64e2e7, committed 2015-02-14
- Comitter:
- mbedAustin
- Date:
- Sat Feb 14 15:43:55 2015 +0000
- Parent:
- 4:7ef90665b399
- Child:
- 6:97b22b5bfbb8
- Commit message:
- added write characteristic handler.
Changed in this revision
BLE_API.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/BLE_API.lib Sat Feb 14 15:27:51 2015 +0000 +++ b/BLE_API.lib Sat Feb 14 15:43:55 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#1407d2f1ce3c +http://mbed.org/teams/Bluetooth-Low-Energy/code/BLE_API/#1956023d42fb
--- a/main.cpp Sat Feb 14 15:27:51 2015 +0000 +++ b/main.cpp Sat Feb 14 15:43:55 2015 +0000 @@ -37,6 +37,8 @@ void writeCharCallback(const GattCharacteristicWriteCBParams *params) { //TODO: when character is written here change the LED, update the read characteristic, and print out to console + led = params->data[0]; + printf("LED Written To, value=%x",params->data[0]); } int