Raphael Leber / X_NUCLEO_IDB0XA1_CPE

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
42:1a0220f508ca
Parent:
41:95b8d531628c
Child:
43:b69d2680b716
--- a/BlueNRGGap.cpp	Wed Aug 27 11:52:07 2014 +0000
+++ b/BlueNRGGap.cpp	Wed Aug 27 11:58:45 2014 +0000
@@ -414,18 +414,45 @@
     
     //if (ret==BLE_STATUS_SUCCESS)
     return BLE_ERROR_NONE;
-    
-    //return BLE_ERROR_PARAM_OUT_OF_RANGE;
 }
 
+/**************************************************************************/
+/*!
+    @brief      Returns boolean if the address of the device has been set
+                or not
+                
+    @returns    bool
+
+    @section EXAMPLE
+
+    @code
+
+    @endcode
+*/
+/**************************************************************************/
 bool BlueNRGGap::getIsSetAddress() 
 {
     return isSetAddress;   
 }
 
+/**************************************************************************/
+/*!
+    @brief      Returns the address of the device if set
+
+    @returns    ble_error_t
+
+    @section EXAMPLE
+
+    @code
+
+    @endcode
+*/
+/**************************************************************************/
 tHalUint8* BlueNRGGap::getAddress() 
 {
-    return bdaddr;    
+    if(isSetAddress)
+    return bdaddr; 
+    else return NULL;   
 }
 
 /**************************************************************************/