Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
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); } }