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.
Fork of X_NUCLEO_IDB0XA1 by
Diff: BlueNRGGap.cpp
- 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; } /**************************************************************************/