Devchannel Team / X_NUCLEO_IDB0XA1

Dependents:   Hello_BLE F446RE-BLE

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
13:4c30346287e4
Parent:
9:dbc2cfe5c24f
Child:
17:63059fcb8db2
--- a/BlueNRGGattServer.cpp	Tue Aug 05 06:33:39 2014 +0000
+++ b/BlueNRGGattServer.cpp	Tue Aug 05 14:03:20 2014 +0000
@@ -68,9 +68,11 @@
     GattCharacteristic *p_char = service.getCharacteristic(0);
     uint16_t char_uuid = (p_char->getUUID()).getShortUUID();
     
+    uint8_t int_8_uuid[2];
+    STORE_LE_16(int_8_uuid, char_uuid);
     //TODO: Check UUID existence??
     
-    ret =  aci_gatt_add_char(service.getHandle(), UUID_TYPE_16, (const uint8_t*)char_uuid, 1,
+    ret =  aci_gatt_add_char(service.getHandle(), UUID_TYPE_16, int_8_uuid, 1,
                            p_char->getProperties()/*CHAR_PROP_NOTIFY*/, ATTR_PERMISSION_NONE, 0,
                            16, 0, /*&hrmCharHandle*/ &bleCharacteristicHandles[characteristicCount]);