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
Revision 131:cb0cf2e6775f, committed 2014-11-21
- Comitter:
- rgrover1
- Date:
- Fri Nov 21 09:23:22 2014 +0000
- Parent:
- 130:e6726fd8fc08
- Child:
- 132:69dada1321ab
- Commit message:
- Synchronized with git rev 23f9ef80
Author: Rohit Grover
enhance connectionEventCallback() to take in peer addr information
Changed in this revision
public/Gap.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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); } }