Andrew Fox / BLE_API

Fork of BLE_API by Bluetooth Low Energy

Committer:
vcoubard
Date:
Mon Jan 11 08:51:49 2016 +0000
Revision:
1088:709ebced28ab
Parent:
1083:ec594a5c119b
Child:
1092:672a2f297a5c
Synchronized with git rev 0781293b
Author: Andres Amaya Garcia
Add onShutdown to register callbacks

Add an onShutdown() function to Gap, GattClient, GattServer and
SecurityManager. The callbacks are added to a private callback chain in each of
the instances. The callbacks will be executed inside each object's reset()
function BEFORE the state of the instance is cleared. The developers of the
platform-specific implementation must call the parent class' reset() function
for the callbacks to be executed.

Finally, an onShutdown() function that returns the shutdown callchain is added
to allow detaching callbacks.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rgrover1 712:b04b5db36865 1 {
rgrover1 712:b04b5db36865 2 "name": "ble",
vcoubard 1083:ec594a5c119b 3 "version": "2.1.16",
rgrover1 712:b04b5db36865 4 "description": "The BLE module offers a high level abstraction for using Bluetooth Low Energy on multiple platforms.",
rgrover1 712:b04b5db36865 5 "keywords": [
rgrover1 712:b04b5db36865 6 "Bluetooth",
rgrover1 912:f728aa46e7df 7 "BLE",
rgrover1 912:f728aa46e7df 8 "mbed",
rgrover1 912:f728aa46e7df 9 "mbed-official"
rgrover1 712:b04b5db36865 10 ],
rgrover1 712:b04b5db36865 11 "author": "Rohit Grover",
rgrover1 712:b04b5db36865 12 "repository": {
rgrover1 912:f728aa46e7df 13 "url": "https://github.com/ARMmbed/ble.git",
rgrover1 712:b04b5db36865 14 "type": "git"
rgrover1 712:b04b5db36865 15 },
vcoubard 1052:b55e1ad3e1b3 16 "homepage": "https://developer.mbed.org/teams/Bluetooth-Low-Energy/",
rgrover1 712:b04b5db36865 17 "licenses": [
rgrover1 712:b04b5db36865 18 {
rgrover1 712:b04b5db36865 19 "url": "https://spdx.org/licenses/Apache-2.0",
rgrover1 712:b04b5db36865 20 "type": "Apache-2.0"
rgrover1 712:b04b5db36865 21 }
rgrover1 712:b04b5db36865 22 ],
rgrover1 761:612103f2faf6 23 "dependencies": {},
rgrover1 712:b04b5db36865 24 "targetDependencies": {
rgrover1 912:f728aa46e7df 25 "st-ble-shield": {
vcoubard 1060:92a63a650871 26 "x-nucleo-idb0xa1": "^2.0.0"
rgrover1 912:f728aa46e7df 27 },
rgrover1 712:b04b5db36865 28 "nrf51822": {
vcoubard 1083:ec594a5c119b 29 "ble-nrf51822": "^2.2.8"
rgrover1 912:f728aa46e7df 30 },
rgrover1 912:f728aa46e7df 31 "cordio": {
rgrover1 912:f728aa46e7df 32 "ble-wicentric": "~0.0.4"
rgrover1 861:2afa79e3ed0a 33 },
rgrover1 746:e2c7eb0f8b26 34 "mbed-classic": {
rgrover1 761:612103f2faf6 35 "mbed-classic": "~0.0.1"
rgrover1 775:8e6aa638f8d9 36 },
rgrover1 812:aba49f3176a2 37 "mbed-os": {
rgrover1 786:d6d7087d8377 38 "mbed-drivers": "*"
rgrover1 712:b04b5db36865 39 }
rgrover1 712:b04b5db36865 40 }
rgrover1 712:b04b5db36865 41 }