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.
Dependents: Hello_BLE F446RE-BLE
Fork of X_NUCLEO_IDB0XA1 by
Diff: BlueNRGGattServer.cpp
- Revision:
- 95:e1f7ce04e71b
- Parent:
- 94:2993df23d1ac
- Child:
- 97:a89d28ad6092
--- a/BlueNRGGattServer.cpp Fri Jul 24 15:00:36 2015 +0000 +++ b/BlueNRGGattServer.cpp Fri Jul 24 17:16:54 2015 +0000 @@ -206,7 +206,7 @@ for(uint8_t descIndex=0; descIndex<p_char->getDescriptorCount(); descIndex++) { GattAttribute *descriptor = p_char->getDescriptor(descIndex); uint16_t shortUUID = descriptor->getUUID().getShortUUID(); - const uint8_t uuidArray[] = {(uint8_t)((shortUUID>>8)&0xFF), (uint8_t)(shortUUID&0xFF)}; + const uint8_t uuidArray[] = {(shortUUID>>8)&0xFF, (shortUUID&0xFF)}; ret = aci_gatt_add_char_desc(service.getHandle(), p_char->getValueAttribute().getHandle(), CHAR_DESC_TYPE_16_BIT, uuidArray, descriptor->getMaxLength(), descriptor->getInitialLength(), descriptor->getValuePtr(), CHAR_DESC_SECURITY_PERMISSION, CHAR_DESC_ACCESS_PERMISSION, GATT_NOTIFY_ATTRIBUTE_WRITE,