Lancaster University's fork of the mbed BLE API. Lives on github, https://github.com/lancaster-university/BLE_API
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Revision 1124:7ffed715734a, committed 2016-01-11
- Comitter:
- vcoubard
- Date:
- Mon Jan 11 08:52:05 2016 +0000
- Parent:
- 1123:685c954464e1
- Child:
- 1125:94951ecc75bf
- Commit message:
- Synchronized with git rev 0dd7f295
Author: Andres Amaya Garcia
Change return value of set.*PolicyMode() functions in Gap
Changed in this revision
ble/Gap.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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; } /**