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: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Revision 1117:421bdb7c5711, committed 2016-01-11
- Comitter:
- vcoubard
- Date:
- Mon Jan 11 08:52:02 2016 +0000
- Parent:
- 1116:9cb51490b3f7
- Child:
- 1118:88af68f0226b
- Commit message:
- Synchronized with git rev 6021b706
Author: Andres Amaya Garcia
Fix Address_t and AddressBytes_t problem 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:02 2016 +0000
+++ b/ble/Gap.h Mon Jan 11 08:52:02 2016 +0000
@@ -115,7 +115,7 @@
};
struct AdvertisementCallbackParams_t {
- BLEProtocol::AddressBytes_t peerAddr;
+ BLEProtocol::AddressBytes_t peerAddr;
int8_t rssi;
bool isScanResponse;
GapAdvertisingParams::AdvertisingType_t type;
@@ -265,9 +265,9 @@
* a connection event.
*/
virtual ble_error_t connect(const BLEProtocol::AddressBytes_t peerAddr,
- BLEProtocol::AddressType_t peerAddrType,
- const ConnectionParams_t *connectionParams,
- const GapScanningParams *scanParams) {
+ BLEProtocol::AddressType_t peerAddrType,
+ const ConnectionParams_t *connectionParams,
+ const GapScanningParams *scanParams) {
/* Avoid compiler warnings about unused variables. */
(void)peerAddr;
(void)peerAddrType;
@@ -286,10 +286,10 @@
const GapScanningParams *scanParams)
* to maintain backward compatibility for change from Gap::AddressType_t to BLEProtocol::AddressType_t
*/
- ble_error_t connect(const BLEProtocol::Address_t peerAddr,
- DeprecatedAddressType_t peerAddrType,
- const ConnectionParams_t *connectionParams,
- const GapScanningParams *scanParams)
+ ble_error_t connect(const BLEProtocol::AddressBytes_t peerAddr,
+ DeprecatedAddressType_t peerAddrType,
+ const ConnectionParams_t *connectionParams,
+ const GapScanningParams *scanParams)
__deprecated_message("Gap::DeprecatedAddressType_t is deprecated, use BLEProtocol::AddressType_t instead") {
return connect(peerAddr, (BLEProtocol::AddressType_t) peerAddrType, connectionParams, scanParams);
}
