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.
Dependencies: BLE_API mbed nRF51822
Fork of BLE_GATT_Example by
Diff: main.cpp
- Revision:
- 6:97b22b5bfbb8
- Parent:
- 5:d0548c64e2e7
- Child:
- 7:f6814152873c
diff -r d0548c64e2e7 -r 97b22b5bfbb8 main.cpp
--- a/main.cpp Sat Feb 14 15:43:55 2015 +0000
+++ b/main.cpp Sat Feb 14 15:49:47 2015 +0000
@@ -36,9 +36,9 @@
// This function is called whenever someone writes something to the writeCharacteristic
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]);
+ // TODO: update the readChar value to match write char, or better yet give it an english value
}
int
