Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
