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.
Dependents: BLE_PowerBank_HeyFaradey
Fork of BLE_API by
Diff: ble/Gap.h
- Revision:
- 1124:7ffed715734a
- Parent:
- 1123:685c954464e1
- Child:
- 1131:692ddf04fc42
--- a/ble/Gap.h Mon Jan 11 08:52:04 2016 +0000
+++ b/ble/Gap.h Mon Jan 11 08:52:05 2016 +0000
@@ -587,11 +587,15 @@
* @param[in] mode
* The new advertising policy filter mode.
*
+ * @return BLE_ERROR_NONE if the specified policy filter mode was set
+ * successfully.
+ *
* @experimental
*/
- virtual void setAdvertisingPolicyMode(AdvertisingPolicyMode_t mode)
+ virtual ble_error_t setAdvertisingPolicyMode(AdvertisingPolicyMode_t mode)
{
(void) mode;
+ return BLE_ERROR_NOT_IMPLEMENTED;
}
/**
@@ -601,11 +605,15 @@
* @param[in] mode
* The new scan policy filter mode.
*
+ * @return BLE_ERROR_NONE if the specified policy filter mode was set
+ * successfully.
+ *
* @experimental
*/
- virtual void setScanningPolicyMode(ScanningPolicyMode_t mode)
+ virtual ble_error_t setScanningPolicyMode(ScanningPolicyMode_t mode)
{
(void) mode;
+ return BLE_ERROR_NOT_IMPLEMENTED;
}
/**
@@ -614,11 +622,15 @@
* @param[in] mode
* The new initiator policy filter mode.
*
+ * @return BLE_ERROR_NONE if the specified policy filter mode was set
+ * successfully.
+ *
* @experimental
*/
- virtual void setInitiatorPolicyMode(InitiatorPolicyMode_t mode)
+ virtual ble_error_t setInitiatorPolicyMode(InitiatorPolicyMode_t mode)
{
(void) mode;
+ return BLE_ERROR_NOT_IMPLEMENTED;
}
/**
