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: public/Gap.h
- Revision:
- 342:152bd9c825d6
- Parent:
- 341:8a104d9d80c1
- Child:
- 346:4a42f777161f
--- a/public/Gap.h Wed Apr 15 09:05:11 2015 +0100
+++ b/public/Gap.h Thu Apr 30 08:37:21 2015 +0100
@@ -77,7 +77,10 @@
}
typedef void (*EventCallback_t)(void);
- typedef void (*ConnectionEventCallback_t)(Handle_t, addr_type_t peerAddrType, const address_t peerAddr, const ConnectionParams_t *);
+ typedef void (*ConnectionEventCallback_t)(Handle_t,
+ addr_type_t peerAddrType, const address_t peerAddr,
+ addr_type_t ownAddrType, const address_t ownAddr,
+ const ConnectionParams_t *);
typedef void (*DisconnectionEventCallback_t)(Handle_t, DisconnectionReason_t);
typedef void (*RadioNotificationEventCallback_t) (bool radio_active); /* gets passed true for ACTIVE; false for INACTIVE. */
@@ -148,10 +151,10 @@
}
public:
- void processConnectionEvent(Handle_t handle, addr_type_t type, const address_t addr, const ConnectionParams_t *params) {
+ void processConnectionEvent(Handle_t handle, addr_type_t peerAddrType, const address_t peerAddr, addr_type_t ownAddrType, const address_t ownAddr, const ConnectionParams_t *params) {
state.connected = 1;
if (onConnection) {
- onConnection(handle, type, addr, params);
+ onConnection(handle, peerAddrType, peerAddr, ownAddrType, ownAddr, params);
}
}
