BLE: Move Gap::StopScan into ::ble::Gap::stopScan .

pull/8738/head
Vincent Coubard 2018-11-20 18:22:34 +00:00
parent dd2c85d063
commit c54e0d9862
3 changed files with 22 additions and 14 deletions

View File

@ -1198,20 +1198,6 @@ public:
"Use stopAdvertising(advertising_handle_t) instead."
)
virtual ble_error_t stopAdvertising(void);
/**
* Stop the ongoing scanning procedure.
*
* The current scanning parameters remain in effect.
*
* @retval BLE_ERROR_NONE if successfully stopped scanning procedure.
*/
virtual ble_error_t stopScan()
{
/* Requesting action from porter(s): override this API if this capability
is supported. */
return BLE_ERROR_NOT_IMPLEMENTED;
}
/**
* Initiate a connection to a peer.

View File

@ -351,6 +351,15 @@ public:
scan_period_t period = scan_period_t(0)
);
/**
* Stop the ongoing scanning procedure.
*
* The current scanning parameters remain in effect.
*
* @retval BLE_ERROR_NONE if successfully stopped scanning procedure.
*/
virtual ble_error_t stopScan();
/** Synchronise with periodic advertising from an advertiser and begin receiving periodic
* advertising packets.
*
@ -583,6 +592,12 @@ protected:
*/
virtual void useVersionTwoAPI() const { }
/* -------- soon to be deprecated API -------- */
protected:
/**
* Construct a Gap instance.
*/

View File

@ -148,6 +148,13 @@ ble_error_t Gap::startScan(
return BLE_ERROR_NOT_IMPLEMENTED;
};
ble_error_t Gap::stopScan()
{
/* Requesting action from porter(s): override this API if this capability
is supported. */
return BLE_ERROR_NOT_IMPLEMENTED;
}
ble_error_t Gap::createSync(
peer_address_type_t peerAddressType,
const address_t &peerAddress,