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:
- 131:cb0cf2e6775f
- Parent:
- 130:e6726fd8fc08
- Child:
- 132:69dada1321ab
diff -r e6726fd8fc08 -r cb0cf2e6775f public/Gap.h --- a/public/Gap.h Fri Nov 21 09:23:22 2014 +0000 +++ b/public/Gap.h Fri Nov 21 09:23:22 2014 +0000 @@ -89,7 +89,7 @@ virtual ble_error_t getAppearance(uint16_t *appearanceP) = 0; typedef void (*EventCallback_t)(void); - typedef void (*ConnectionEventCallback_t)(Handle_t, const ConnectionParams_t *); + typedef void (*ConnectionEventCallback_t)(Handle_t, addr_type_t peerAddrType, const address_t peerAddr, const ConnectionParams_t *); typedef void (*DisconnectionEventCallback_t)(Handle_t, DisconnectionReason_t); /* Event callback handlers */ @@ -103,10 +103,10 @@ onDisconnection = callback; } - void processConnectionEvent(Handle_t handle, const ConnectionParams_t *params) { + void processConnectionEvent(Handle_t handle, addr_type_t type, const address_t addr, const ConnectionParams_t *params) { state.connected = 1; if (onConnection) { - onConnection(handle, params); + onConnection(handle, type, addr, params); } }