Devchannel Team / X_NUCLEO_IDB0XA1

Dependents:   Hello_BLE F446RE-BLE

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
9:dbc2cfe5c24f
Parent:
8:486bcaa4eb3d
Child:
13:4c30346287e4
diff -r 486bcaa4eb3d -r dbc2cfe5c24f BlueNRGGattServer.cpp
--- a/BlueNRGGattServer.cpp	Fri Aug 01 12:55:49 2014 +0000
+++ b/BlueNRGGattServer.cpp	Fri Aug 01 14:25:23 2014 +0000
@@ -25,7 +25,7 @@
                                    ((buf)[1] =  (tHalUint8) (val>>8)  ) , \
                                    ((buf)[2] =  (tHalUint8) (val>>16) ) , \
                                    ((buf)[3] =  (tHalUint8) (val>>24) ) ) 
-                                   
+                          
 /**************************************************************************/
 /*!
     @brief  Adds a new service to the GATT table on the peripheral
@@ -52,7 +52,10 @@
     
     
     /* Add the service to the BlueNRG */
-    uint8_t primary_uuid[2] = {0x0D,0x18};//(service.getUUID()).getShortUUID();
+    uint16_t short_uuid = (service.getUUID()).getShortUUID();
+    
+    uint8_t primary_uuid[2];//= {0x0D,0x18};    
+    STORE_LE_16(primary_uuid, short_uuid);
     
     //TODO: Check UUID existence??