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.
Diff: source/BlueNRGGattServer.cpp
- Branch:
- 72a03e94578ba288a289bed81955d4d04ab6702f
- Revision:
- 269:cd037b36a62b
- Parent:
- 267:cd7870e466b3
- Child:
- 278:a5209d8cfd61
--- a/source/BlueNRGGattServer.cpp Thu Sep 15 10:51:31 2016 +0100
+++ b/source/BlueNRGGattServer.cpp Thu Sep 15 10:51:31 2016 +0100
@@ -101,6 +101,8 @@
COPY_UUID_128(primary_base_uuid, base_uuid[15],base_uuid[14],primary_short_uuid[1],primary_short_uuid[0],base_uuid[11],base_uuid[10],base_uuid[9],base_uuid[8],base_uuid[7],base_uuid[6],base_uuid[5],base_uuid[4],base_uuid[3],base_uuid[2],base_uuid[1],base_uuid[0]);
}
+ ret = BLE_STATUS_SUCCESS;
+
if(type==UUID::UUID_TYPE_SHORT) {
ret = aci_gatt_add_serv(UUID_TYPE_16,
primary_short_uuid,
@@ -109,8 +111,7 @@
&servHandle);
PRINTF("aci_gatt_add_serv UUID_TYPE_SHORT ret=%d\n\r", ret);
- }
- else if(type==UUID::UUID_TYPE_LONG) {
+ } else if(type==UUID::UUID_TYPE_LONG) {
ret = aci_gatt_add_serv(UUID_TYPE_128,
primary_base_uuid,
PRIMARY_SERVICE,