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
Revision 22:49dbfae869f8, committed 2015-10-26
- Comitter:
- michellen
- Date:
- Mon Oct 26 10:06:50 2015 +0000
- Parent:
- 21:73f42c00b1db
- Commit message:
- v1 - copy of example
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 20 13:48:13 2015 +0000 +++ b/main.cpp Mon Oct 26 10:06:50 2015 +0000 @@ -7,11 +7,11 @@ uint16_t readCharUUID = 0xA001; uint16_t writeCharUUID = 0xA002; -const static char DEVICE_NAME[] = "ChangeMe!!"; // change this +const static char DEVICE_NAME[] = "ClothingDevice"; // change this static const uint16_t uuid16_list[] = {0xFFFF}; //Custom UUID, FFFF is reserved for development // Set Up custom Characteristics -static uint8_t readValue[10] = {0}; +static uint8_t readValue[10] = {1,2,3,4}; ReadOnlyArrayGattCharacteristic<uint8_t, sizeof(readValue)> readChar(readCharUUID, readValue); static uint8_t writeValue[10] = {0};