mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Move Gap::StopScan into ::ble::Gap::stopScan .
parent
dd2c85d063
commit
c54e0d9862
|
@ -1198,20 +1198,6 @@ public:
|
||||||
"Use stopAdvertising(advertising_handle_t) instead."
|
"Use stopAdvertising(advertising_handle_t) instead."
|
||||||
)
|
)
|
||||||
virtual ble_error_t stopAdvertising(void);
|
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.
|
* Initiate a connection to a peer.
|
||||||
|
|
|
@ -351,6 +351,15 @@ public:
|
||||||
scan_period_t period = scan_period_t(0)
|
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
|
/** Synchronise with periodic advertising from an advertiser and begin receiving periodic
|
||||||
* advertising packets.
|
* advertising packets.
|
||||||
*
|
*
|
||||||
|
@ -583,6 +592,12 @@ protected:
|
||||||
*/
|
*/
|
||||||
virtual void useVersionTwoAPI() const { }
|
virtual void useVersionTwoAPI() const { }
|
||||||
|
|
||||||
|
|
||||||
|
/* -------- soon to be deprecated API -------- */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
protected:
|
||||||
/**
|
/**
|
||||||
* Construct a Gap instance.
|
* Construct a Gap instance.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -148,6 +148,13 @@ ble_error_t Gap::startScan(
|
||||||
return BLE_ERROR_NOT_IMPLEMENTED;
|
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(
|
ble_error_t Gap::createSync(
|
||||||
peer_address_type_t peerAddressType,
|
peer_address_type_t peerAddressType,
|
||||||
const address_t &peerAddress,
|
const address_t &peerAddress,
|
||||||
|
|
Loading…
Reference in New Issue